commit | 64044bcf75063cb5a6d42712886a712449df2ce3 | [log] [tgz] |
---|---|---|
author | Roland Dreier <rolandd@cisco.com> | Wed Nov 09 12:23:17 2005 -0800 |
committer | Roland Dreier <rolandd@cisco.com> | Thu Nov 10 10:22:51 2005 -0800 |
tree | 984d2fc62c548af3d01450135f33b5b97aecf00b | |
parent | 62abb8416f1923f4cef50ce9ce841b919275e3fb [diff] |
[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>