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: 60abd318 ("selinux: convert cond_list to array") Signed-off-by: NWei Yongjun <weiyongjun1@huawei.com> Reviewed-by: NOndrej Mosnacek <omosnace@redhat.com> Signed-off-by: NPaul Moore <paul@paul-moore.com>
Showing
想要评论请 注册 或 登录