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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
693f66d621
commit
b5a1d545f4
+1
-2
@@ -537,8 +537,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);
|
||||
|
||||
}
|
||||
|
||||
@@ -151,8 +151,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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user