提交 57152a5b 编写于 作者: M Markus Elfring 提交者: Paul Moore

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: NMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: NPaul Moore <paul@paul-moore.com>
上级 02fcef27
......@@ -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++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册