mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
selinux: Return directly after a failed next_entry() in range_read()
Return directly after a call of the function "next_entry" failed at the beginning. Signed-off-by: Markus Elfring <[email protected]> Signed-off-by: Paul Moore <[email protected]>
This commit is contained in:
parent
02fcef27cc
commit
57152a5be0
1 changed files with 1 additions and 1 deletions
|
|
@ -1852,7 +1852,7 @@ static int range_read(struct policydb *p, void *fp)
|
|||
|
||||
rc = next_entry(buf, fp, sizeof(u32));
|
||||
if (rc)
|
||||
goto out;
|
||||
return rc;
|
||||
|
||||
nel = le32_to_cpu(buf[0]);
|
||||
for (i = 0; i < nel; i++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue