Commit 3a0aa565 authored by Markus Elfring's avatar Markus Elfring Committed by Paul Moore

selinux: Return directly after a failed next_entry() in genfs_read()

Return directly after a call of the function "next_entry" failed
at the beginning.
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent b4e4686f
...@@ -2006,7 +2006,7 @@ static int genfs_read(struct policydb *p, void *fp) ...@@ -2006,7 +2006,7 @@ static int genfs_read(struct policydb *p, void *fp)
rc = next_entry(buf, fp, sizeof(u32)); rc = next_entry(buf, fp, sizeof(u32));
if (rc) if (rc)
goto out; return rc;
nel = le32_to_cpu(buf[0]); nel = le32_to_cpu(buf[0]);
for (i = 0; i < nel; i++) { for (i = 0; i < nel; i++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment