Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
selinux: fix return value on error in policydb_read()
The value of rc is still zero from the last assignment when the error path is taken. Fix it by setting it to -ENOMEM before the hashtab_create() call. Reported-by: Dan Carpenter <[email protected]> Fixes: e67b2ec ("selinux: store role transitions in a hash table") Signed-off-by: Ondrej Mosnacek <[email protected]> Signed-off-by: Paul Moore <[email protected]>
- Loading branch information