From: Al Viro Date: Fri, 31 Oct 2025 05:12:04 +0000 (-0400) Subject: ksmbd_vfs_path_lookup(): vfs_path_parent_lookup() accepts ERR_PTR() as name X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edefe6bda719d49384b22c524ef8102ce9c632e9;p=thirdparty%2Fkernel%2Flinux.git 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 --- diff --git a/fs/smb/server/vfs.c b/fs/smb/server/vfs.c index f891344bd76b5..a972261168407 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);