Commit 5b09c9fe authored by Al Viro's avatar Al Viro
Browse files

do_proc_readlink(): constify path

parent 2d343087
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;