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>
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");
}