Skip to content

Commit 6416281

Browse files
author
James Morris
committed
Merge branch 'upstream' of git://git.infradead.org/users/pcmoore/selinux into for-linus
2 parents 3c435c1 + 6436a12 commit 6416281

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)