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

Commit 6436a123 authored by Joe Perches's avatar Joe Perches Committed by Paul Moore
Browse files

selinux: fix sel_write_enforce broken return value



Return a negative error value like the rest of the entries in this function.

Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Acked-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
[PM: tweaked subject line]
Signed-off-by: default avatarPaul Moore <pmoore@redhat.com>
parent 04f81f01
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;