mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
[PATCH] seclvl: use securityfs (fix)
That should be -EINVAL for both. Signed-off-by: Serge Hallyn <[email protected]> Cc: Greg KH <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
1 parent
d15c5749eb
commit
9afa57b04c
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user