[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>
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 @@
}
if (count < 0 || count >= PAGE_SIZE)
- return -ENOMEM;
+ return -EINVAL;
if (*ppos != 0)
return -EINVAL;
page = (char *)get_zeroed_page(GFP_KERNEL);