From: Al Viro Date: Mon, 7 Jul 2025 01:36:36 +0000 (-0400) Subject: ksmbd_vfs_path_lookup_locked(): root_share_path can be const struct path * X-Git-Tag: v6.18-rc1~108^2~1^2~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=94cb22d109d5172569cf0a477a9e76f08b92ed01;p=thirdparty%2Fkernel%2Flinux.git ksmbd_vfs_path_lookup_locked(): root_share_path can be const struct path * Acked-by: Namjae Jeon Reviewed-by: Christian Brauner Signed-off-by: Al Viro --- diff --git a/fs/smb/server/vfs.c b/fs/smb/server/vfs.c index 04539037108c9..9f45c6ced8542 100644 --- a/fs/smb/server/vfs.c +++ b/fs/smb/server/vfs.c @@ -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;