[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>
此提交包含在:
@@ -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)
|
||||
|
新增問題並參考
封鎖使用者