diff options
author | Serge Hallyn <serue@us.ibm.com> | 2005-09-16 19:27:57 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-17 11:50:01 -0700 |
commit | 9afa57b04ca08ff061e54787e3becf5c40283149 (patch) | |
tree | 0289bc53611919aaf87c455633fe0b3a9eff2c87 /security | |
parent | d15c5749eb81dee94d40fe12584ca8461858b4cb (diff) | |
download | kernel_samsung_tuna-9afa57b04ca08ff061e54787e3becf5c40283149.zip kernel_samsung_tuna-9afa57b04ca08ff061e54787e3becf5c40283149.tar.gz kernel_samsung_tuna-9afa57b04ca08ff061e54787e3becf5c40283149.tar.bz2 |
[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>
Diffstat (limited to 'security')
-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 241093d..1caac01 100644 --- a/security/seclvl.c +++ b/security/seclvl.c @@ -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); |