]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - security/seclvl.c
[PATCH] seclvl: use securityfs (fix)
[linux-2.6-omap-h63xx.git] / security / seclvl.c
index 241093d6f0b89fc0daecde1b7c29e062cc382989..1caac0164643c202a55c1e8394b9669706723591 100644 (file)
@@ -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);