IB/mthca: memfree completion with error FW bug workaround
authorMichael S. Tsirkin <mst@mellanox.co.il>
Tue, 13 Jun 2006 14:19:42 +0000 (17:19 +0300)
committerRoland Dreier <rolandd@cisco.com>
Sun, 18 Jun 2006 03:37:20 +0000 (20:37 -0700)
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 <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>

No differences found