diff options
-rw-r--r-- | security/seclvl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/seclvl.c b/security/seclvl.c index 241093d6f0b8..1caac0164643 100644 --- a/security/seclvl.c +++ b/security/seclvl.c | |||
@@ -252,7 +252,7 @@ passwd_write_file(struct file * file, const char __user * buf, | |||
252 | } | 252 | } |
253 | 253 | ||
254 | if (count < 0 || count >= PAGE_SIZE) | 254 | if (count < 0 || count >= PAGE_SIZE) |
255 | return -ENOMEM; | 255 | return -EINVAL; |
256 | if (*ppos != 0) | 256 | if (*ppos != 0) |
257 | return -EINVAL; | 257 | return -EINVAL; |
258 | page = (char *)get_zeroed_page(GFP_KERNEL); | 258 | page = (char *)get_zeroed_page(GFP_KERNEL); |