Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ksmbd: use CLASS(filename_kernel)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 39537a33 abb04344

+2 -5
+2 -5
fs/smb/server/vfs.c
··· 54 54 struct path *path, bool for_remove) 55 55 { 56 56 struct qstr last; 57 - struct filename *filename __free(putname) = NULL; 58 57 const struct path *root_share_path = &share_conf->vfs_path; 59 58 int err, type; 60 59 struct dentry *d; ··· 65 66 flags |= LOOKUP_BENEATH; 66 67 } 67 68 68 - filename = getname_kernel(pathname); 69 + CLASS(filename_kernel, filename)(pathname); 69 70 err = vfs_path_parent_lookup(filename, flags, 70 71 path, &last, &type, 71 72 root_share_path); ··· 663 664 struct path new_path; 664 665 struct qstr new_last; 665 666 struct renamedata rd; 666 - struct filename *to; 667 667 struct ksmbd_share_config *share_conf = work->tcon->share_conf; 668 668 struct ksmbd_file *parent_fp; 669 669 int new_type; ··· 671 673 if (ksmbd_override_fsids(work)) 672 674 return -ENOMEM; 673 675 674 - to = getname_kernel(newname); 676 + CLASS(filename_kernel, to)(newname); 675 677 676 678 retry: 677 679 err = vfs_path_parent_lookup(to, lookup_flags | LOOKUP_BENEATH, ··· 730 732 goto retry; 731 733 } 732 734 out1: 733 - putname(to); 734 735 ksmbd_revert_fsids(work); 735 736 return err; 736 737 }