diff options
author | Dotan Barak <[email protected]> | 2014-07-16 11:57:48 +0300 |
---|---|---|
committer | David S. Miller <[email protected]> | 2014-07-16 23:26:24 -0700 |
commit | aab2bb0e290bc4f99992cb2198c40eb645647548 (patch) | |
tree | 6d467bc93c9ab39394242af2b1fe79c308125b50 /tools/perf/scripts/python/syscall-counts.py | |
parent | 0d7869acb2f30b64e4fb782b5df309e2287c2e1f (diff) |
net/mlx4_core: Make sure that negative array index isn't used
To make sure that the array index isn't used in the code with
negative value, we stop using the for loop integer iterator
outside of it.
>From now on use members count to swap the last QP with removed one.
Fix also the second occurrence of this flow in mlx4_qp_detach_common().
In mlx4_qp_detach_common() use members_count instead of
loop iterator outside of the for loop.
Signed-off-by: Dotan Barak <[email protected]>
Reviewed-by: Yevgeny Petrilin <[email protected]>
Signed-off-by: Eugenia Emantayev <[email protected]>
Signed-off-by: Amir Vadai <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions