Browse Source

Merge branch 'upstream' of git://git.infradead.org/users/pcmoore/selinux into for-linus

James Morris 10 years ago
parent
commit
641628146c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      security/selinux/selinuxfs.c

+ 1 - 1
security/selinux/selinuxfs.c

@@ -152,7 +152,7 @@ static ssize_t sel_write_enforce(struct file *file, const char __user *buf,
 		goto out;
 		goto out;
 
 
 	/* No partial writes. */
 	/* No partial writes. */
-	length = EINVAL;
+	length = -EINVAL;
 	if (*ppos != 0)
 	if (*ppos != 0)
 		goto out;
 		goto out;