mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
[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>
This commit is contained in:
parent
b7fe2e391e
commit
1b8177ec1e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue