mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
do_proc_readlink(): constify path
Reviewed-by: Christian Brauner (Microsoft) <[email protected]> Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
1 parent
2d3430875a
commit
5b09c9fec0
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user