Free page_list buffer on error path of mthca_reg_phys_mr().

Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>

---

 linux.git/drivers/infiniband/hw/mthca/mthca_provider.c |    1 +
 1 files changed, 1 insertion(+)



--- linux.git.orig/drivers/infiniband/hw/mthca/mthca_provider.c 2005-06-23 
13:03:06.413728929 -0700
+++ linux.git/drivers/infiniband/hw/mthca/mthca_provider.c      2005-06-23 
13:03:07.987388350 -0700
@@ -559,6 +559,7 @@ static struct ib_mr *mthca_reg_phys_mr(s
                                  convert_access(acc), mr);
 
        if (err) {
+               kfree(page_list);
                kfree(mr);
                return ERR_PTR(err);
        }

_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to