erofs: fix handling kern_mount() failure
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 13 Feb 2024 03:44:11 +0000 (22:44 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 20 Feb 2024 07:09:02 +0000 (02:09 -0500)
commit2c88c16dc20e88dd54d2f6f4d01ae1dce6cc9654
treebe221a16f9ef29e552d71b6c1fbd4eec33e9424c
parent7e4a205fe56b9092f0143dad6aa5fee081139b09
erofs: fix handling kern_mount() failure

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>
fs/erofs/fscache.c