Message ID | 1430857987-2358-1-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c index 392ab0f..9977902 100644 --- a/security/selinux/selinuxfs.c +++ b/security/selinux/selinuxfs.c @@ -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;