mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
9p: don't leave a half-initialized inode sitting around
commit 0a73d0a204a4a04a1e110539c5a524ae51f91d6d upstream. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Zefan Li <lizefan@huawei.com>
This commit is contained in:
parent
580fc1504f
commit
1247d2434a
2 changed files with 2 additions and 4 deletions
|
@ -540,8 +540,7 @@ static struct inode *v9fs_qid_iget(struct super_block *sb,
|
|||
unlock_new_inode(inode);
|
||||
return inode;
|
||||
error:
|
||||
unlock_new_inode(inode);
|
||||
iput(inode);
|
||||
iget_failed(inode);
|
||||
return ERR_PTR(retval);
|
||||
|
||||
}
|
||||
|
|
|
@ -169,8 +169,7 @@ static struct inode *v9fs_qid_iget_dotl(struct super_block *sb,
|
|||
unlock_new_inode(inode);
|
||||
return inode;
|
||||
error:
|
||||
unlock_new_inode(inode);
|
||||
iput(inode);
|
||||
iget_failed(inode);
|
||||
return ERR_PTR(retval);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue