From 9afa57b04ca08ff061e54787e3becf5c40283149 Mon Sep 17 00:00:00 2001
From: Serge Hallyn <serue@us.ibm.com>
Date: Fri, 16 Sep 2005 19:27:57 -0700
Subject: [PATCH] [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>
---
 security/seclvl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/security/seclvl.c b/security/seclvl.c
index 241093d6f0b89f..1caac0164643c2 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);
-- 
GitLab