diff options
author | Ondrej Mosnacek <omosnace@redhat.com> | 2020-05-01 21:51:11 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2020-05-01 22:08:46 +0200 |
commit | 46619b44e431d85d64a8dfcb7166d0ae098544c8 (patch) | |
tree | 4efa8c85fa18e599d353f1d2e2df7f9e88a44540 /security/selinux/ss/policydb.h | |
parent | selinux: simplify range_write() (diff) | |
download | linux-46619b44e431d85d64a8dfcb7166d0ae098544c8.tar.xz linux-46619b44e431d85d64a8dfcb7166d0ae098544c8.zip |
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 <dan.carpenter@oracle.com>
Fixes: e67b2ec9f617 ("selinux: store role transitions in a hash table")
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/ss/policydb.h')
0 files changed, 0 insertions, 0 deletions