mirror of https://gitee.com/openkylin/linux.git
[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>
This commit is contained in:
parent
4706df3d3c
commit
06c56e44f3
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue