mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
selinux: fix sel_write_enforce broken return value
Return a negative error value like the rest of the entries in this function. Cc: <[email protected]> Signed-off-by: Joe Perches <[email protected]> Acked-by: Stephen Smalley <[email protected]> [PM: tweaked subject line] Signed-off-by: Paul Moore <[email protected]>
This commit is contained in:
parent
04f81f0154
commit
6436a123a1
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue