From: Michael S. Tsirkin Date: Thu, 1 Sep 2005 16:19:02 +0000 (-0700) Subject: [PATCH] IPoIB: fix memory leak X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=06c56e44f3e32a859420ecac97996cc6f12827bb;p=linux-beck.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 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)