diff options
author | Rasmus Villemoes | 2022-05-11 16:12:50 +0200 |
---|---|---|
committer | Tom Rini | 2022-08-08 10:50:20 -0400 |
commit | 4a7c9dbf9a42330970a9742c1d476f2a9075f3f9 (patch) | |
tree | bc79d53ce2082a161964f15a503b594e2ba677b6 /drivers/net | |
parent | ecd8b0371386eb0b1826f5d067a3086ad5184a85 (diff) |
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/dwc_eth_qos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dwc_eth_qos.c b/drivers/net/dwc_eth_qos.c index c1f2391d635..7c504dd1ca5 100644 --- a/drivers/net/dwc_eth_qos.c +++ b/drivers/net/dwc_eth_qos.c @@ -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; |