summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2008-01-20 06:50:24 +0300
committerSteven Whitehouse <swhiteho@redhat.com>2008-01-25 11:21:04 +0300
commit1b8177ec1e779bcc3ed89419ff7c80dbc3dcc489 (patch)
treef0bd7d9446dd5d6a90eada749ebb129caa4c6c0a /fs
parentb7fe2e391ee7b711d6dfd6a694d60c4f21113cbb (diff)
downloadlinux-1b8177ec1e779bcc3ed89419ff7c80dbc3dcc489.tar.xz
[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 <rpeterso@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/gfs2/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index c84764ad82b3..728d3169e7bd 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)