diff options
author | Michael S. Tsirkin <mst@mellanox.co.il> | 2005-09-01 09:19:02 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2005-09-07 09:48:52 -0700 |
commit | 06c56e44f3e32a859420ecac97996cc6f12827bb (patch) | |
tree | 0505dab4e36ca571a4a429baeb5b6e2fe2b98b07 /drivers/infiniband | |
parent | 4706df3d3c42af802597d82c8b1542c3d52eab23 (diff) | |
download | blackbird-op-linux-06c56e44f3e32a859420ecac97996cc6f12827bb.tar.gz blackbird-op-linux-06c56e44f3e32a859420ecac97996cc6f12827bb.zip |
[PATCH] IPoIB: fix memory leak
Fix IPoIB memory leak on device removal.
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c index 0e8ac138e355..49d120d2b92c 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_main.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c @@ -1062,6 +1062,8 @@ static void ipoib_remove_one(struct ib_device *device) ipoib_dev_cleanup(priv->dev); free_netdev(priv->dev); } + + kfree(dev_list); } static int __init ipoib_init_module(void) |