Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 3225717 ("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]>
- Loading branch information