mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 01:05:08 +07:00
37c85c3498
There are a couple bugs with the error handling in this function. 1) If we can't allocate "rx_ring->rx_skbuff" then we should call dma_free_coherent() but we don't. 2) free_rx_ring() frees "rx_ring->rx_skbuff_dma" and "rx_ring->rx_skbuff" so calling it in a loop causes a double free. Also it was a bit confusing how we sometimes freed things before doing the goto. I've cleaned it up so it does error handling in normal kernel style. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net> |
||
---|---|---|
.. | ||
Makefile | ||
sxgbe_common.h | ||
sxgbe_core.c | ||
sxgbe_desc.c | ||
sxgbe_desc.h | ||
sxgbe_dma.c | ||
sxgbe_dma.h | ||
sxgbe_ethtool.c | ||
sxgbe_main.c | ||
sxgbe_mdio.c | ||
sxgbe_mtl.c | ||
sxgbe_mtl.h | ||
sxgbe_platform.c | ||
sxgbe_reg.h | ||
sxgbe_xpcs.c | ||
sxgbe_xpcs.h |