diff options
author | Peter Kosyh <[email protected]> | 2022-11-17 18:28:06 +0300 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-11-18 19:34:30 -0800 |
commit | 594c61ffc77de0a197934aa0f1df9285c68801c6 (patch) | |
tree | 558ed9fe599cd961985037d57bf1f9dde12f64cc /tools/perf/scripts/python/syscall-counts.py | |
parent | f70074140524c59a0935947b06dd6cb6e1ea642d (diff) |
net/mlx4: Check retval of mlx4_bitmap_init
If mlx4_bitmap_init fails, mlx4_bitmap_alloc_range will dereference
the NULL pointer (bitmap->table).
Make sure, that mlx4_bitmap_alloc_range called in no error case.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: d57febe1a478 ("net/mlx4: Add A0 hybrid steering")
Reviewed-by: Tariq Toukan <[email protected]>
Signed-off-by: Peter Kosyh <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions