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:
e07cccf
)
RDMA/cxgb3: iwch_unregister_device leaks memory
author
Steve Wise
<swise@opengridcomputing.com>
Sun, 6 Sep 2009 03:22:36 +0000
(20:22 -0700)
committer
Roland Dreier
<rolandd@cisco.com>
Sun, 6 Sep 2009 03:22:36 +0000
(20:22 -0700)
The iwcm struct mem is never freed.
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/cxgb3/iwch_provider.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/cxgb3/iwch_provider.c
b/drivers/infiniband/hw/cxgb3/iwch_provider.c
index e2a63214008a90b1ddf137341bbbbc4eac2d16e4..72aa57cdf6979e1eeffd01bac06a8f41e22085ba 100644
(file)
--- a/
drivers/infiniband/hw/cxgb3/iwch_provider.c
+++ b/
drivers/infiniband/hw/cxgb3/iwch_provider.c
@@
-1418,6
+1418,7
@@
int iwch_register_device(struct iwch_dev *dev)
bail2:
ib_unregister_device(&dev->ibdev);
bail1:
+ kfree(dev->ibdev.iwcm);
return ret;
}
@@
-1430,5
+1431,6
@@
void iwch_unregister_device(struct iwch_dev *dev)
device_remove_file(&dev->ibdev.dev,
iwch_class_attributes[i]);
ib_unregister_device(&dev->ibdev);
+ kfree(dev->ibdev.iwcm);
return;
}