提交 a44937fe 编写于 作者: A Alexey Dobriyan 提交者: Linus Torvalds
上级 8d48b2e0
...@@ -1366,10 +1366,8 @@ static ssize_t proc_fail_nth_read(struct file *file, char __user *buf, ...@@ -1366,10 +1366,8 @@ static ssize_t proc_fail_nth_read(struct file *file, char __user *buf,
if (!task) if (!task)
return -ESRCH; return -ESRCH;
len = snprintf(numbuf, sizeof(numbuf), "%u\n", task->fail_nth); len = snprintf(numbuf, sizeof(numbuf), "%u\n", task->fail_nth);
len = simple_read_from_buffer(buf, count, ppos, numbuf, len);
put_task_struct(task); put_task_struct(task);
return simple_read_from_buffer(buf, count, ppos, numbuf, len);
return len;
} }
static const struct file_operations proc_fail_nth_operations = { static const struct file_operations proc_fail_nth_operations = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册