Commit 9afa57b0 authored by Serge Hallyn's avatar Serge Hallyn Committed by Linus Torvalds

[PATCH] seclvl: use securityfs (fix)

That should be -EINVAL for both.
Signed-off-by: default avatarSerge Hallyn <serue@us.ibm.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment