OSDN Git Service

selinux: fix sel_write_enforce broken return value
[android-x86/kernel.git] / security / selinux / selinuxfs.c
index 33db1ad..138949a 100644 (file)
@@ -152,7 +152,7 @@ static ssize_t sel_write_enforce(struct file *file, const char __user *buf,
                goto out;
 
        /* No partial writes. */
-       length = EINVAL;
+       length = -EINVAL;
        if (*ppos != 0)
                goto out;