diff options
author | Roland Dreier | 2005-11-09 21:23:17 +0100 |
---|---|---|
committer | Roland Dreier | 2005-11-10 19:22:51 +0100 |
commit | 64044bcf75063cb5a6d42712886a712449df2ce3 (patch) | |
tree | 984d2fc62c548af3d01450135f33b5b97aecf00b /drivers/infiniband/hw/mthca/mthca_wqe.h | |
parent | [IB] mthca: fix posting of atomic operations (diff) | |
download | kernel-qcow2-linux-64044bcf75063cb5a6d42712886a712449df2ce3.tar.gz kernel-qcow2-linux-64044bcf75063cb5a6d42712886a712449df2ce3.tar.xz kernel-qcow2-linux-64044bcf75063cb5a6d42712886a712449df2ce3.zip |
[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>
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_wqe.h')
0 files changed, 0 insertions, 0 deletions