linux_dsm_epyc7002/drivers/net/ethernet/natsemi
Christophe JAILLET 10e3cc180e net/sonic: Fix a resource leak in an error handling path in 'jazz_sonic_probe()'
A call to 'dma_alloc_coherent()' is hidden in 'sonic_alloc_descriptors()',
called from 'sonic_probe1()'.

This is correctly freed in the remove function, but not in the error
handling path of the probe function.
Fix it and add the missing 'dma_free_coherent()' call.

While at it, rename a label in order to be slightly more informative.

Fixes: efcce83936 ("[PATCH] macsonic/jazzsonic network drivers update")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-04-27 12:07:46 -07:00
..
jazzsonic.c net/sonic: Fix a resource leak in an error handling path in 'jazz_sonic_probe()' 2020-04-27 12:07:46 -07:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
macsonic.c net/macsonic: Remove interrupt handler wrapper 2020-02-16 19:48:22 -08:00
Makefile ethernet: natsemi: correct spelling 2018-03-06 11:14:08 -05:00
natsemi.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
ns83820.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-01-28 16:02:33 -08:00
sonic.c net/sonic: Start packet transmission immediately 2020-02-16 19:48:22 -08:00
sonic.h net/sonic: Remove redundant next_tx variable 2020-02-16 19:48:22 -08:00
xtsonic.c net/sonic: Refactor duplicated code 2020-02-16 19:48:21 -08:00