summaryrefslogtreecommitdiff
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@mellanox.co.il>2005-09-01 16:19:02 (GMT)
committerRoland Dreier <rolandd@cisco.com>2005-09-07 16:48:52 (GMT)
commit06c56e44f3e32a859420ecac97996cc6f12827bb (patch)
tree0505dab4e36ca571a4a429baeb5b6e2fe2b98b07 /drivers/infiniband
parent4706df3d3c42af802597d82c8b1542c3d52eab23 (diff)
downloadlinux-fsl-qoriq-06c56e44f3e32a859420ecac97996cc6f12827bb.tar.xz
[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.c2
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 0e8ac13..49d120d 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)