Skip to content
Commit 64044bcf authored by Roland Dreier's avatar Roland Dreier
Browse files

[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: default avatarRoland Dreier <rolandd@cisco.com>
parent 62abb841
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment