do_proc_readlink(): constify path
Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
2d3430875a
commit
5b09c9fec0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue