]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ksmbd_vfs_path_lookup_locked(): root_share_path can be const struct path *
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 7 Jul 2025 01:36:36 +0000 (21:36 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 16 Sep 2025 01:17:08 +0000 (21:17 -0400)
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/smb/server/vfs.c

index 04539037108c93e285f4e9d6aa61f93a507ae5da..9f45c6ced85421efa0581acf579be42e0d60f683 100644 (file)
@@ -72,7 +72,7 @@ static int ksmbd_vfs_path_lookup(struct ksmbd_share_config *share_conf,
 {
        struct qstr last;
        struct filename *filename __free(putname) = NULL;
-       struct path *root_share_path = &share_conf->vfs_path;
+       const struct path *root_share_path = &share_conf->vfs_path;
        int err, type;
        struct dentry *d;