mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-18 06:58:54 +00:00
net: dwc_eth_qos: fix double resource leak in eqos_remove()
Not only does eqos_remove() fail to free the buffers that have been allocated by eqos_probe_resources_core(), it repeats those allocations and thus drops twice as much memory on the floor. Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
This commit is contained in:
parent
ecd8b03713
commit
4a7c9dbf9a
1 changed files with 1 additions and 1 deletions
|
@ -1574,7 +1574,7 @@ static int eqos_remove(struct udevice *dev)
|
|||
eqos->config->ops->eqos_stop_clks(dev);
|
||||
eqos->config->ops->eqos_remove_resources(dev);
|
||||
|
||||
eqos_probe_resources_core(dev);
|
||||
eqos_remove_resources_core(dev);
|
||||
|
||||
debug("%s: OK\n", __func__);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue