diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2025-10-31 08:12:04 +0300 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2026-01-13 23:18:07 +0300 |
| commit | edefe6bda719d49384b22c524ef8102ce9c632e9 (patch) | |
| tree | 1af38fe6d3598100d36b43d6b11aa1841bfb4791 /fs | |
| parent | 1c38f1f9b0a62651db5afcd37b964eb6b377fe66 (diff) | |
| download | linux-edefe6bda719d49384b22c524ef8102ce9c632e9.tar.xz | |
ksmbd_vfs_path_lookup(): vfs_path_parent_lookup() accepts ERR_PTR() as name
no need to check in the caller
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/smb/server/vfs.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/smb/server/vfs.c b/fs/smb/server/vfs.c index f891344bd76b..a97226116840 100644 --- a/fs/smb/server/vfs.c +++ b/fs/smb/server/vfs.c @@ -67,9 +67,6 @@ static int ksmbd_vfs_path_lookup(struct ksmbd_share_config *share_conf, } filename = getname_kernel(pathname); - if (IS_ERR(filename)) - return PTR_ERR(filename); - err = vfs_path_parent_lookup(filename, flags, path, &last, &type, root_share_path); |
