diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2022-08-04 13:11:42 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2022-09-01 17:38:37 -0400 |
commit | 5b09c9fec0868e72dfafa5302caef5bf6933f4dd (patch) | |
tree | 60d979e4e14cd447d2f1431c49f0f3c7b17f5c56 /fs/proc | |
parent | 2d3430875a3a9761fcbd10aed4396b464ed5078c (diff) |
do_proc_readlink(): constify path
Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index e347b8ce140c..2d9429bf51fa 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -1761,7 +1761,7 @@ out: return ERR_PTR(error); } -static int do_proc_readlink(struct path *path, char __user *buffer, int buflen) +static int do_proc_readlink(const struct path *path, char __user *buffer, int buflen) { char *tmp = kmalloc(PATH_MAX, GFP_KERNEL); char *pathname; |