[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 0e8ac13..49d120d 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)