diff mbox series

[06/11] do_proc_readlink(): constify path

Message ID 20220820181256.1535714-5-viro@zeniv.linux.org.uk (mailing list archive)
State New, archived
Headers show
Series Subject: [PATCH 01/11] ->getprocattr(): attribute name is const char *, TYVM... | expand

Commit Message

Al Viro Aug. 20, 2022, 6:12 p.m. UTC
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
 fs/proc/base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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;