Merge tag 'jfs-3.12' of git://github.com/kleikamp/linux-shaggy
Pull jfs bugfix from David Kleikamp: "Just a patch to fix an oops in an error path" * tag 'jfs-3.12' of git://github.com/kleikamp/linux-shaggy: jfs: fix error path in ialloc
This commit is contained in:
@@ -95,7 +95,7 @@ struct inode *ialloc(struct inode *parent, umode_t mode)
|
|||||||
|
|
||||||
if (insert_inode_locked(inode) < 0) {
|
if (insert_inode_locked(inode) < 0) {
|
||||||
rc = -EINVAL;
|
rc = -EINVAL;
|
||||||
goto fail_unlock;
|
goto fail_put;
|
||||||
}
|
}
|
||||||
|
|
||||||
inode_init_owner(inode, parent, mode);
|
inode_init_owner(inode, parent, mode);
|
||||||
@@ -156,7 +156,6 @@ struct inode *ialloc(struct inode *parent, umode_t mode)
|
|||||||
fail_drop:
|
fail_drop:
|
||||||
dquot_drop(inode);
|
dquot_drop(inode);
|
||||||
inode->i_flags |= S_NOQUOTA;
|
inode->i_flags |= S_NOQUOTA;
|
||||||
fail_unlock:
|
|
||||||
clear_nlink(inode);
|
clear_nlink(inode);
|
||||||
unlock_new_inode(inode);
|
unlock_new_inode(inode);
|
||||||
fail_put:
|
fail_put:
|
||||||
|
Reference in New Issue
Block a user