diff options
author | Namjae Jeon | 2023-12-31 16:12:45 +0900 |
---|---|---|
committer | Greg Kroah-Hartman | 2024-01-05 15:18:30 +0100 |
commit | deb79f20be21db51369d45ea5a3002c480a19d00 (patch) | |
tree | 912b546893d4cbfbd61d264fd2ccfe7e8560e963 | |
parent | fe7977b872a6f74d91d1b7679362a076c0464231 (diff) |
ksmbd: return a literal instead of 'err' in ksmbd_vfs_kern_path_locked()
[ Upstream commit cf5e7f734f445588a30350591360bca2f6bf016f ]
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>
-rw-r--r-- | fs/smb/server/vfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smb/server/vfs.c b/fs/smb/server/vfs.c index e6218c687fa0..d0a85774a496 100644 --- a/fs/smb/server/vfs.c +++ b/fs/smb/server/vfs.c @@ -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; |