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>

Al Viro 0a73d0a2 1c4c7159

Changed files
+2 -4
fs
+1 -2
fs/9p/vfs_inode.c
··· 540 540 unlock_new_inode(inode); 541 541 return inode; 542 542 error: 543 - unlock_new_inode(inode); 544 - iput(inode); 543 + iget_failed(inode); 545 544 return ERR_PTR(retval); 546 545 547 546 }
+1 -2
fs/9p/vfs_inode_dotl.c
··· 149 149 unlock_new_inode(inode); 150 150 return inode; 151 151 error: 152 - unlock_new_inode(inode); 153 - iput(inode); 152 + iget_failed(inode); 154 153 return ERR_PTR(retval); 155 154 156 155 }