[PATCH] IPoIB: fix memory leak
authorMichael S. Tsirkin <mst@mellanox.co.il>
Thu, 1 Sep 2005 16:19:02 +0000 (09:19 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 7 Sep 2005 16:48:52 +0000 (09:48 -0700)
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>
drivers/infiniband/ulp/ipoib/ipoib_main.c

index 0e8ac138e355bd4c71e2c21f58a809eb7d0f190e..49d120d2b92c5308e5dda9fe802a4ae9667b26ac 100644 (file)
@@ -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)