projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3ac60f
)
IPoIB: Fix error path memory leak
author
Eli Cohen
<
[email protected]
>
Tue, 21 Aug 2007 15:46:10 +0000
(18:46 +0300)
committer
Roland Dreier
<
[email protected]
>
Wed, 10 Oct 2007 02:59:06 +0000
(19:59 -0700)
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
patch
|
blob
|
history
diff --git
a/drivers/infiniband/ulp/ipoib/ipoib_main.c
b/drivers/infiniband/ulp/ipoib/ipoib_main.c
index 894b1dcdf3eb31ff0e326aaf9a0b9b793303b8ff..5f948b9a9943644a4bb6eafbb068705af7212b69 100644
(file)
--- 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));