diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2022-08-04 12:51:14 -0400 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2022-10-05 01:15:37 -0500 |
commit | c22180a5e2a9e1426fab01d9e54011ec531b1b52 (patch) | |
tree | 0f5f1dd91fca58c1499a67d7184d8bd7c30b29e3 /fs/ksmbd/misc.c | |
parent | 369c1634cc7ae8645a5cba4c7eb874755c2a6a07 (diff) |
ksmbd: constify struct path
... in particular, there should never be a non-const pointers to
any file->f_path.
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/ksmbd/misc.c')
-rw-r--r-- | fs/ksmbd/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ksmbd/misc.c b/fs/ksmbd/misc.c index df991107ad2c..364a0a463dfc 100644 --- a/fs/ksmbd/misc.c +++ b/fs/ksmbd/misc.c @@ -159,7 +159,7 @@ out: */ char *convert_to_nt_pathname(struct ksmbd_share_config *share, - struct path *path) + const struct path *path) { char *pathname, *ab_pathname, *nt_pathname; int share_path_len = share->path_sz; |