summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorJames Morris <james.l.morris@oracle.com>2015-03-27 10:33:27 +0100
committerJames Morris <james.l.morris@oracle.com>2015-03-27 10:33:27 +0100
commit641628146c1986c966ae030e65bb6f30feef0fd0 (patch)
treef26a935d0760d20b4f5cdaefbc4c6e2a49e62a94 /security
parentMerge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux (diff)
parentselinux: fix sel_write_enforce broken return value (diff)
downloadlinux-641628146c1986c966ae030e65bb6f30feef0fd0.tar.xz
linux-641628146c1986c966ae030e65bb6f30feef0fd0.zip
Merge branch 'upstream' of git://git.infradead.org/users/pcmoore/selinux into for-linus
Diffstat (limited to 'security')
-rw-r--r--security/selinux/selinuxfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c
index 1684bcc78b34..5fde34326dcf 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;