diff options
author | Michael S. Tsirkin <mst@mellanox.co.il> | 2005-09-01 18:19:02 +0200 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2005-09-07 18:48:52 +0200 |
commit | 06c56e44f3e32a859420ecac97996cc6f12827bb (patch) | |
tree | 0505dab4e36ca571a4a429baeb5b6e2fe2b98b07 /drivers/infiniband | |
parent | Merge master.kernel.org:/pub/scm/linux/kernel/git/paulus/ppc64-2.6 (diff) | |
download | linux-06c56e44f3e32a859420ecac97996cc6f12827bb.tar.xz 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) |