From: Al Viro Date: Thu, 4 Aug 2022 17:11:42 +0000 (-0400) Subject: do_proc_readlink(): constify path X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5b09c9fec0868e72dfafa5302caef5bf6933f4dd;p=linux.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 @@ 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;