Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IB/core: Fix static analysis warning in ib_policy_change_task
ib_get_cached_subnet_prefix can technically fail, but the only way it could is not possible based on the loop conditions. Check the return value before using the variable sp to resolve a static analysis warning. -v1: - Fix check to !ret. Paul Moore Fixes: 8f408ab ("selinux lsm IB/core: Implement LSM notification system") Signed-off-by: Daniel Jurgens <[email protected]> Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Paul Moore <[email protected]> Signed-off-by: James Morris <[email protected]>
- Loading branch information