mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
ksmbd: return a literal instead of 'err' in ksmbd_vfs_kern_path_locked()
[ Upstream commit cf5e7f734f ]
Return a literal instead of 'err' in ksmbd_vfs_kern_path_locked().
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
fe7977b872
commit
deb79f20be
@@ -1208,7 +1208,7 @@ int ksmbd_vfs_kern_path_locked(struct ksmbd_work *work, char *name,
|
|||||||
|
|
||||||
err = ksmbd_vfs_path_lookup_locked(share_conf, name, flags, path);
|
err = ksmbd_vfs_path_lookup_locked(share_conf, name, flags, path);
|
||||||
if (!err)
|
if (!err)
|
||||||
return err;
|
return 0;
|
||||||
|
|
||||||
if (caseless) {
|
if (caseless) {
|
||||||
char *filepath;
|
char *filepath;
|
||||||
|
|||||||
Reference in New Issue
Block a user