浏览代码

[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>
Serge Hallyn 19 年之前
父节点
当前提交
9afa57b04c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      security/seclvl.c

+ 1 - 1
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);