From: Al Viro Date: Thu, 4 Aug 2022 17:11:42 +0000 (-0400) Subject: do_proc_readlink(): constify path X-Git-Tag: v6.1-rc1~143^2~5 X-Git-Url: https://gentwo.org/gitweb/?a=commitdiff_plain;h=5b09c9fec0868e72dfafa5302caef5bf6933f4dd;p=linux%2F.git do_proc_readlink(): constify path Reviewed-by: Christian Brauner (Microsoft) Signed-off-by: Al Viro --- 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 @@ static const char *proc_pid_get_link(struct dentry *dentry, 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;