[PATCH] seclvl: use securityfs (fix)
That should be -EINVAL for both. Signed-off-by: Serge Hallyn <serue@us.ibm.com> Cc: Greg KH <greg@kroah.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
d15c5749eb
commit
9afa57b04c
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ passwd_write_file(struct file * file, const char __user * buf,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count < 0 || count >= PAGE_SIZE)
|
if (count < 0 || count >= PAGE_SIZE)
|
||||||
return -ENOMEM;
|
return -EINVAL;
|
||||||
if (*ppos != 0)
|
if (*ppos != 0)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
page = (char *)get_zeroed_page(GFP_KERNEL);
|
page = (char *)get_zeroed_page(GFP_KERNEL);
|
||||||
|
|
Loading…
Reference in a new issue