aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorAlex Shi <alex.shi@linaro.org>2015-04-20 13:51:23 +0800
committerAlex Shi <alex.shi@linaro.org>2015-04-20 13:51:23 +0800
commitd315de219a699e697bcde7e10c3bae58082552bb (patch)
tree41b0d2121844c73f70f05f353e5d8e961ef9bb1e /security
parent142e6be5c40648bebe5267c6470966b6ba8f0e8b (diff)
parent663276faa26c2837eca83a5800b3668be19aaaff (diff)
Merge branch 'linux-linaro-lsk-v3.14' into linux-linaro-lsk-v3.14-android
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 d60c0ee66387..6c4cbd97a673 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;