]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: fix error return code in cond_read_list()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 27 Apr 2020 12:49:35 +0000 (12:49 +0000)
committerPaul Moore <paul@paul-moore.com>
Mon, 27 Apr 2020 21:44:39 +0000 (17:44 -0400)
commit99053f07c42f9e177b06307c1317ca60e77b937c
tree36a10d1d1f71e4b47e6055b01650e67ee86023a3
parent7c41d5c8e174b79c47bd7db80cc200c921959685
selinux: fix error return code in cond_read_list()

Fix to return negative error code -ENOMEM from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: 4c64b9477c04 ("selinux: convert cond_list to array")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Ondrej Mosnacek <omosnace@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/conditional.c