Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security

Pull selinux bugfix from James Morris.

Fix broken return value.

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security:
  selinux: fix sel_write_enforce broken return value
This commit is contained in:
Linus Torvalds 2015-03-28 10:41:22 -07:00
commit 38ae1dfc78
1 changed files with 1 additions and 1 deletions

View 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;