diff --git a/security/selinux/ss/policydb.c b/security/selinux/ss/policydb.c index bccc9acf6bc507915fef1375de2019f2f1499705..375e304070e1597d97ac2680d24e56741da30402 100644 --- a/security/selinux/ss/policydb.c +++ b/security/selinux/ss/policydb.c @@ -2006,7 +2006,7 @@ static int genfs_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++) {