]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sysctl-allow-for-strict-write-position-handling-fix-2
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 22 May 2014 00:44:10 +0000 (10:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:44:10 +0000 (10:44 +1000)
fix build

kernel/sysctl.c: In function 'warn_sysctl_write':
kernel/sysctl.c:1786: error: 'struct task_struct' has no member named 'task_comm'

Cc: Kees Cook <keescook@chromium.org>
Cc: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/sysctl.c

index d5bee7949e4a3906d38a3d1068286b8c7ec722cf..e23d7017b870b8a918d1440b5999bd01ab4f8e66 100644 (file)
@@ -1784,7 +1784,7 @@ static int _proc_do_string(char *data, int maxlen, int write,
 static void warn_sysctl_write(struct ctl_table *table)
 {
        pr_warn("%s wrote to %s when file position was not 0!\n",
-               current->task_comm, table->procname);
+               current->comm, table->procname);
        pr_warn("This will not be supported in the future.\n");
        pr_warn("To silence warning, set kernel.sysctl_writes_strict = -1\n");
 }