android_kernel_xiaomi_sm7250/drivers/infiniband/hw
Roland Dreier 64044bcf75 [IB] mthca: fix wraparound handling in mthca_cq_clean()
Handle case where prod_index has wrapped around and become less than
cq->cons_index by checking that their difference as a signed int is
positive rather than comparing directly.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
2005-11-10 10:22:51 -08:00
..
mthca [IB] mthca: fix wraparound handling in mthca_cq_clean() 2005-11-10 10:22:51 -08:00