Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 388d75e1 authored by Al Viro's avatar Al Viro Committed by Sasha Levin
Browse files

9p: don't leave a half-initialized inode sitting around



[ Upstream commit 0a73d0a204a4a04a1e110539c5a524ae51f91d6d ]

Cc: stable@vger.kernel.org # all branches
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent 82bec81e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);

}
+1 −2
Original line number Diff line number Diff line
@@ -149,8 +149,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);

}