提交 9afa57b0 编写于 作者: S Serge Hallyn 提交者: Linus Torvalds

[PATCH] seclvl: use securityfs (fix)

That should be -EINVAL for both.
Signed-off-by: NSerge Hallyn <serue@us.ibm.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 d15c5749
......@@ -252,7 +252,7 @@ passwd_write_file(struct file * file, const char __user * buf,
}
if (count < 0 || count >= PAGE_SIZE)
return -ENOMEM;
return -EINVAL;
if (*ppos != 0)
return -EINVAL;
page = (char *)get_zeroed_page(GFP_KERNEL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册