mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-17 22:05:08 +00:00
[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…
x
Reference in New Issue
Block a user