summaryrefslogtreecommitdiffstats
path: root/fs/smb
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2023-05-30 14:43:17 +0200
committerSteve French <stfrench@microsoft.com>2023-06-26 07:07:04 +0200
commitcf5e7f734f445588a30350591360bca2f6bf016f (patch)
treecd72784a9f96cac7e76cbc97e9c75b03af89218e /fs/smb
parentksmbd: use kzalloc() instead of __GFP_ZERO (diff)
downloadlinux-cf5e7f734f445588a30350591360bca2f6bf016f.tar.xz
linux-cf5e7f734f445588a30350591360bca2f6bf016f.zip
ksmbd: return a literal instead of 'err' in ksmbd_vfs_kern_path_locked()
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>
Diffstat (limited to 'fs/smb')
-rw-r--r--fs/smb/server/vfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smb/server/vfs.c b/fs/smb/server/vfs.c
index 81489fdedd8e..26cb0d5ab80a 100644
--- a/fs/smb/server/vfs.c
+++ b/fs/smb/server/vfs.c
@@ -1207,7 +1207,7 @@ int ksmbd_vfs_kern_path_locked(struct ksmbd_work *work, char *name,
err = ksmbd_vfs_path_lookup_locked(share_conf, name, flags, path);
if (!err)
- return err;
+ return 0;
if (caseless) {
char *filepath;