Skip to content

Commit 38ae1df

Browse files
committed
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
2 parents a39bdfb + 6416281 commit 38ae1df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/selinux/selinuxfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ static ssize_t sel_write_enforce(struct file *file, const char __user *buf,
152152
goto out;
153153

154154
/* No partial writes. */
155-
length = EINVAL;
155+
length = -EINVAL;
156156
if (*ppos != 0)
157157
goto out;
158158

0 commit comments

Comments
 (0)