[MTHCA] bugfix: mthca_array_clear() does not clear the slot if the used count is
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 1 Aug 2006 10:11:10 +0000 (10:11 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 1 Aug 2006 10:11:10 +0000 (10:11 +0000)
commitf0817666c0085c2dcfc4eb6bab11b9d2c114bf68
treed9b1f5b89d075d85dc20b6d4fd45050af0fe40fc
parent9f9552a5dbf7826a88dc99b79e1cee1d0b1f1e85
[MTHCA] bugfix: mthca_array_clear() does not clear the slot if the used count is
positive. This leads to crashes in mthca_qp_event() since that uses
mthca_array_get() to check that the qp is valid.

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@435 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
hw/mthca/kernel/mthca_allocator.c