|
@@ -87,9 +87,8 @@ proc_dodebug(ctl_table *table, int write, struct file *file,
|
|
left--, s++;
|
|
left--, s++;
|
|
*(unsigned int *) table->data = value;
|
|
*(unsigned int *) table->data = value;
|
|
/* Display the RPC tasks on writing to rpc_debug */
|
|
/* Display the RPC tasks on writing to rpc_debug */
|
|
- if (table->ctl_name == CTL_RPCDEBUG) {
|
|
|
|
|
|
+ if (strcmp(table->procname, "rpc_debug") == 0)
|
|
rpc_show_tasks();
|
|
rpc_show_tasks();
|
|
- }
|
|
|
|
} else {
|
|
} else {
|
|
if (!access_ok(VERIFY_WRITE, buffer, left))
|
|
if (!access_ok(VERIFY_WRITE, buffer, left))
|
|
return -EFAULT;
|
|
return -EFAULT;
|