From: Michael S. Tsirkin Date: Thu, 1 Sep 2005 16:19:02 +0000 (-0700) Subject: [PATCH] IPoIB: fix memory leak X-Git-Tag: v2.6.14-rc1~115^2~12 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=06c56e44f3e32a859420ecac97996cc6f12827bb;p=linux-2.6-omap-h63xx.git [PATCH] IPoIB: fix memory leak Fix IPoIB memory leak on device removal. Signed-off-by: Michael S. Tsirkin Signed-off-by: Roland Dreier --- diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c index 0e8ac138e35..49d120d2b92 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)