Skip to content

Commit cf5e7f7

Browse files
namjaejeonsmfrench
authored andcommitted
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 <[email protected]> Signed-off-by: Namjae Jeon <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent f87d4f8 commit cf5e7f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/smb/server/vfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ int ksmbd_vfs_kern_path_locked(struct ksmbd_work *work, char *name,
12071207

12081208
err = ksmbd_vfs_path_lookup_locked(share_conf, name, flags, path);
12091209
if (!err)
1210-
return err;
1210+
return 0;
12111211

12121212
if (caseless) {
12131213
char *filepath;

0 commit comments

Comments
 (0)