X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=kernel%2Futsname_sysctl.c;h=69eae358a726d8a8848d7f3e141c22762493c7b4;hb=278498d438781426d8f315b65f7bca023a26fcc0;hp=92359cc747a7c52cb85e362ab3b9178e4756ee2d;hpb=f22d806b6cc0c74dd0a1a21b3f311dba51d9df84;p=~andy%2Flinux diff --git a/kernel/utsname_sysctl.c b/kernel/utsname_sysctl.c index 92359cc747a..69eae358a72 100644 --- a/kernel/utsname_sysctl.c +++ b/kernel/utsname_sysctl.c @@ -42,14 +42,14 @@ static void put_uts(ctl_table *table, int write, void *which) * Special case of dostring for the UTS structure. This has locks * to observe. Should this be in kernel/sys.c ???? */ -static int proc_do_uts_string(ctl_table *table, int write, struct file *filp, +static int proc_do_uts_string(ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos) { struct ctl_table uts_table; int r; memcpy(&uts_table, table, sizeof(uts_table)); uts_table.data = get_uts(table, write); - r = proc_dostring(&uts_table,write,filp,buffer,lenp, ppos); + r = proc_dostring(&uts_table,write,buffer,lenp, ppos); put_uts(table, write, uts_table.data); return r; }