mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-30 19:15:14 +00:00
9p: don't leave a half-initialized inode sitting around
Cc: stable@vger.kernel.org # all branches Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
1c4c7159ed
commit
0a73d0a204
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);
|
unlock_new_inode(inode);
|
||||||
return inode;
|
return inode;
|
||||||
error:
|
error:
|
||||||
unlock_new_inode(inode);
|
iget_failed(inode);
|
||||||
iput(inode);
|
|
||||||
return ERR_PTR(retval);
|
return ERR_PTR(retval);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -149,8 +149,7 @@ static struct inode *v9fs_qid_iget_dotl(struct super_block *sb,
|
||||||
unlock_new_inode(inode);
|
unlock_new_inode(inode);
|
||||||
return inode;
|
return inode;
|
||||||
error:
|
error:
|
||||||
unlock_new_inode(inode);
|
iget_failed(inode);
|
||||||
iput(inode);
|
|
||||||
return ERR_PTR(retval);
|
return ERR_PTR(retval);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue