IB/mthca: Fix mthca_array_clear() thinko
authorMichael S. Tsirkin <mst@mellanox.co.il>
Wed, 26 Jul 2006 13:02:53 +0000 (16:02 +0300)
committerRoland Dreier <rolandd@cisco.com>
Thu, 3 Aug 2006 16:44:21 +0000 (09:44 -0700)
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.

Discovered by Ali Ayoub.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>

No differences found