tree c47d89fa3fdac4efcd3a71535f08f09f68370f86
parent 85665c9816a2b38866e03c019bf5c2e47eb9fb04
author Michael S. Tsirkin <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:26:19 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:26:19 -0700

[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 <[EMAIL PROTECTED]>
Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>

 infiniband/hw/mthca/mthca_mr.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Index: drivers/infiniband/hw/mthca/mthca_mr.c
===================================================================
--- 
e9a2d836259c200967e4be4185fcc7cc9a3e80ed/drivers/infiniband/hw/mthca/mthca_mr.c 
 (mode:100644 sha1:5eb6e07f35bb2fdbd83c910df56bb70193d0dc76)
+++ 
c47d89fa3fdac4efcd3a71535f08f09f68370f86/drivers/infiniband/hw/mthca/mthca_mr.c 
 (mode:100644 sha1:66656379ea7b2f43fc0668bd9f2f9d5276d50fac)
@@ -231,7 +231,7 @@
                mthca_table_put(dev, dev->mr_table.mpt_table, key);
 
 err_out_mpt_free:
-       mthca_free(&dev->mr_table.mpt_alloc, mr->ibmr.lkey);
+       mthca_free(&dev->mr_table.mpt_alloc, key);
        kfree(mailbox);
        return err;
 }
@@ -368,7 +368,7 @@
                mthca_table_put(dev, dev->mr_table.mpt_table, key);
 
 err_out_mpt_free:
-       mthca_free(&dev->mr_table.mpt_alloc, mr->ibmr.lkey);
+       mthca_free(&dev->mr_table.mpt_alloc, key);
        return err;
 }
 
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to