Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
librdmacm: Fix an overflow bug in qsort comparison function
[ Upstream commit c4a5ac8 ] The comparison function dev_cmp() doesn't work with 64b pointers in some cases, as it casts the pointer to int. For example it's not able to sort this list: {0xfffe0c2f0b00, 0xaaac741b4a90, 0xaaac741b4d70} Fixes: e5d371c ("librdmacm: Globally store and sort IB device list") Signed-off-by: Mark Zhang <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Signed-off-by: Yishai Hadas <[email protected]> Signed-off-by: Nicolas Morey <[email protected]>
- Loading branch information