Skip to content

Commit

Permalink
[PATCH] seclvl: use securityfs (fix)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Serge Hallyn authored and Linus Torvalds committed Sep 17, 2005
1 parent d15c574 commit 9afa57b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/seclvl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9afa57b

Please sign in to comment.