Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38ae1dfc authored by Linus Torvalds's avatar Linus Torvalds
Browse files
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
parents a39bdfb5 64162814
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;