From: Serge Hallyn Date: Sat, 17 Sep 2005 02:27:57 +0000 (-0700) Subject: [PATCH] seclvl: use securityfs (fix) X-Git-Tag: v2.6.14-rc2~5^2~33 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9afa57b04ca08ff061e54787e3becf5c40283149;p=linux-2.6 [PATCH] seclvl: use securityfs (fix) That should be -EINVAL for both. Signed-off-by: Serge Hallyn Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/security/seclvl.c b/security/seclvl.c index 241093d6f0..1caac01646 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);