[PATCH] IB/mthca: fix MR allocation error path
authorMichael S. Tsirkin <mst@mellanox.co.il>
Sat, 16 Apr 2005 22:26:19 +0000 (15:26 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 16 Apr 2005 22:26:19 +0000 (15:26 -0700)
commit55645e9b0ae202f9bd58e68eb141d7594163935f
treec47d89fa3fdac4efcd3a71535f08f09f68370f86
parent85665c9816a2b38866e03c019bf5c2e47eb9fb04
[PATCH] IB/mthca: fix MR allocation error path

Fix error handling in MR allocation for mem-free mode: mthca_free must get an
MR index, not a key.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <roland@topspin.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/infiniband/hw/mthca/mthca_mr.c