From: Michael S. Tsirkin Date: Wed, 26 Jul 2006 13:02:53 +0000 (+0300) Subject: IB/mthca: Fix mthca_array_clear() thinko X-Git-Tag: v2.6.18-rc4~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf74c7479ef47652005a2418eeb0d867451690da;p=pandora-kernel.git IB/mthca: Fix mthca_array_clear() thinko 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 Signed-off-by: Roland Dreier --- Reading git-diff-tree failed