diff options
author | Daniel Jurgens <[email protected]> | 2017-07-05 16:15:21 +0300 |
---|---|---|
committer | James Morris <[email protected]> | 2017-07-07 09:49:26 +1000 |
commit | a750cfde1397dbbee1efe7737c2e952d6fc2d878 (patch) | |
tree | d567ec6ccc997c90a20ab1cf55cc2c15efb8cd1d /tools/perf/scripts/python/stackcollapse.py | |
parent | 79d0636ac7f839d57680305a462f0d8ff9bb13ec (diff) |
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: 8f408ab64be6 ("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]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions