linux_dsm_epyc7002/drivers/net/ethernet/samsung/sxgbe
Dan Carpenter 37c85c3498 net: sxgbe: fix error handling in init_rx_ring()
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>
2015-02-06 12:50:12 -08:00
..
Makefile
sxgbe_common.h net: sxgbe: Added rxqueue enable function 2014-04-30 16:12:22 -04:00
sxgbe_core.c net: sxgbe: Added rxqueue enable function 2014-04-30 16:12:22 -04:00
sxgbe_desc.c net: sxgbe: Added set function for interrupt on complete 2014-04-30 16:12:22 -04:00
sxgbe_desc.h net: sxgbe: Added set function for interrupt on complete 2014-04-30 16:12:22 -04:00
sxgbe_dma.c net: sxgbe: sw reset moved to probe function 2014-04-30 16:12:22 -04:00
sxgbe_dma.h net: sxgbe: add TSO support for Samsung sxgbe 2014-03-26 16:49:31 -04:00
sxgbe_ethtool.c net: get rid of SET_ETHTOOL_OPS 2014-05-13 17:43:20 -04:00
sxgbe_main.c net: sxgbe: fix error handling in init_rx_ring() 2015-02-06 12:50:12 -08:00
sxgbe_mdio.c net: sxgbe: Added phy_found error path 2014-04-22 16:07:17 -04:00
sxgbe_mtl.c
sxgbe_mtl.h
sxgbe_platform.c net: sxgbe: Fix NULL dereferece when using DT 2015-01-15 19:01:10 -05:00
sxgbe_reg.h net: sxgbe: remove duplicate SXGBE_CORE_L34_ADDCTL_REG define 2014-06-11 15:01:30 -07:00
sxgbe_xpcs.c
sxgbe_xpcs.h