Skip to content

Commit

Permalink
ksmbd: return a literal instead of 'err' in ksmbd_vfs_kern_path_locked()
Browse files Browse the repository at this point in the history
[ Upstream commit cf5e7f7 ]

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>
  • Loading branch information
namjaejeon authored and gregkh committed Jan 5, 2024
1 parent fe7977b commit deb79f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/smb/server/vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
if (!err)
return err;
return 0;

if (caseless) {
char *filepath;
Expand Down

0 comments on commit deb79f2

Please sign in to comment.