From: Michael S. Tsirkin Date: Tue, 13 Jun 2006 14:19:42 +0000 (+0300) Subject: IB/mthca: memfree completion with error FW bug workaround X-Git-Tag: v2.6.18-rc1~1110^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e56ea794ec8636991e21942fc2e0d071ea8ee1d;p=pandora-kernel.git IB/mthca: memfree completion with error FW bug workaround Memfree firmware is in rare cases reporting WQE index == base - 1 in receive completion with error, instead of (rq size - 1); base is 0 in mthca. Here is a patch to avoid kernel crash and report a correct WR id in this case. Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier --- Reading git-diff-tree failed