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
Unified · Split
| @@ -152,7 +152,7 @@ static ssize_t sel_write_enforce(struct file *file, const char __user *buf, · 151 unmodified lines | ||
| 152 | 152 | goto out; |
| 153 | 153 | |
| 154 | 154 | /* No partial writes. */ |
| 155 | − length = EINVAL; | |
| 155 | + length = -EINVAL; | |
| 156 | 156 | if (*ppos != 0) |
| 157 | 157 | goto out; |
| 158 | 158 | |