Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ca6de177acef8f2c7c3901ea583a263364ca7bbb
Commit:     ca6de177acef8f2c7c3901ea583a263364ca7bbb
Parent:     b3ac60fc243f2312d27ecded058ef96f52f25fe0
Author:     Eli Cohen <[EMAIL PROTECTED]>
AuthorDate: Tue Aug 21 18:46:10 2007 +0300
Committer:  Roland Dreier <[EMAIL PROTECTED]>
CommitDate: Tue Oct 9 19:59:06 2007 -0700

    IPoIB: Fix error path memory leak
    
    Clean up properly if ib_query_pkey() or ib_query_gid() fail.
    
    Signed-off-by: Eli Cohen <[EMAIL PROTECTED]>
    Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
---
 drivers/infiniband/ulp/ipoib/ipoib_main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c 
b/drivers/infiniband/ulp/ipoib/ipoib_main.c
index 894b1dc..5f948b9 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_main.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c
@@ -1083,7 +1083,7 @@ static struct net_device *ipoib_add_port(const char 
*format,
        if (result) {
                printk(KERN_WARNING "%s: ib_query_pkey port %d failed (ret = 
%d)\n",
                       hca->name, port, result);
-               goto alloc_mem_failed;
+               goto device_init_failed;
        }
 
        /*
@@ -1099,7 +1099,7 @@ static struct net_device *ipoib_add_port(const char 
*format,
        if (result) {
                printk(KERN_WARNING "%s: ib_query_gid port %d failed (ret = 
%d)\n",
                       hca->name, port, result);
-               goto alloc_mem_failed;
+               goto device_init_failed;
        } else
                memcpy(priv->dev->dev_addr + 4, priv->local_gid.raw, sizeof 
(union ib_gid));
 
-
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