diff options
| author | Dongliang Mu <[email protected]> | 2022-06-09 15:06:56 +0800 |
|---|---|---|
| committer | Leon Romanovsky <[email protected]> | 2022-06-16 20:07:07 +0300 |
| commit | 1a685940e6200e9def6e34bbaa19dd31dc5aeaf8 (patch) | |
| tree | 9ce84e06c627e830066f29e1d5934e6902515cab /tools/perf/scripts/python | |
| parent | d56e336e8444970964b6e8d1bd4536f505256c41 (diff) | |
RDMA/rxe: fix xa_alloc_cycle() error return value check again
Currently rxe_alloc checks ret to indicate error, but 1 is also a valid
return and just indicates that the allocation succeeded with a wrap.
Fix this by modifying the check to be < 0.
Link: https://lore.kernel.org/r/[email protected]
Fixes: 3225717f6dfa ("RDMA/rxe: Replace red-black trees by xarrays")
Signed-off-by: Dongliang Mu <[email protected]>
Reviewed-by: Bob Pearson <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions