]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
erofs: fix handling kern_mount() failure
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 13 Feb 2024 03:44:11 +0000 (22:44 -0500)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:40 +0000 (18:19 -0400)
commit51b27119196cf2d89d5186c3e476d4ffca9919c7
tree6682367c946436512006f0d1a54f1f048e43202a
parent613139a0303d6aa92bf72ab3990babd651a8b5fc
erofs: fix handling kern_mount() failure

[ Upstream commit 2c88c16dc20e88dd54d2f6f4d01ae1dce6cc9654 ]

if you have a variable that holds NULL or  a pointer to live struct mount,
do not shove ERR_PTR() into it - not if you later treat "not NULL" as
"holds a pointer to object".

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Stable-dep-of: 0f28be64d132 ("erofs: fix lockdep false positives on initializing erofs_pseudo_mnt")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/erofs/fscache.c