From: Bob Peterson Date: Sun, 20 Jan 2008 03:50:24 +0000 (-0600) Subject: [GFS2] Lockup on error X-Git-Tag: v2.6.25-rc1~1241^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1b8177ec1e779bcc3ed89419ff7c80dbc3dcc489;p=linux-2.6-omap-h63xx.git [GFS2] Lockup on error I spotted this bug while I was digging around. Looks like it could cause a lockup in some rare error condition. Signed-off-by: Bob Peterson Signed-off-by: Steven Whitehouse --- diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index c84764ad82b..728d3169e7b 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c @@ -860,7 +860,7 @@ static int link_dinode(struct gfs2_inode *dip, const struct qstr *name, error = alloc_required = gfs2_diradd_alloc_required(&dip->i_inode, name); if (alloc_required < 0) - goto fail; + goto fail_quota_locks; if (alloc_required) { error = gfs2_quota_check(dip, dip->i_inode.i_uid, dip->i_inode.i_gid); if (error)