Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6958e827f187c9c5cd39af075567f74f02bf3dd1
Commit:     6958e827f187c9c5cd39af075567f74f02bf3dd1
Parent:     198919151dea65d83dd0fb66979b1df28402f2b0
Author:     Jack Morgenstein <[EMAIL PROTECTED]>
AuthorDate: Mon Aug 6 17:09:09 2007 +0300
Committer:  Roland Dreier <[EMAIL PROTECTED]>
CommitDate: Tue Aug 7 12:40:56 2007 -0700

    IPoIB: Fix leak in ipoib_transport_dev_init() error path
    
    ipoib_transport_dev_init() calls ipoib_cm_dev_init(), so it needs to
    call ipoib_cm_dev_cleanup() to unwind that on the error path.
    
    Found by Dotan Barak of Mellanox.
    
    Signed-off-by: Jack Morgenstein <[EMAIL PROTECTED]>
    Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
---
 drivers/infiniband/ulp/ipoib/ipoib_verbs.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/infiniband/ulp/ipoib/ipoib_verbs.c 
b/drivers/infiniband/ulp/ipoib/ipoib_verbs.c
index 982eb88..563aeac 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_verbs.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_verbs.c
@@ -211,6 +211,7 @@ out_free_cq:
 
 out_free_mr:
        ib_dereg_mr(priv->mr);
+       ipoib_cm_dev_cleanup(dev);
 
 out_free_pd:
        ib_dealloc_pd(priv->pd);
-
To unsubscribe from this list: send the line "unsubscribe git-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