linux_dsm_epyc7002/drivers/net/ethernet/stmicro/stmmac
Bartlomiej Zolnierkiewicz 5632913721 stmmac: fix init_dma_desc_rings() to handle errors
In stmmac_init_rx_buffers():
* add missing handling of dma_map_single() error
* remove superfluous unlikely() optimization while at it

Add stmmac_free_rx_buffers() helper and use it in dma_free_rx_skbufs().

In init_dma_desc_rings():
* add missing handling of kmalloc_array() errors
* fix handling of dma_alloc_coherent() and stmmac_init_rx_buffers() errors
* make function return an error value on error and 0 on success

In stmmac_open():
* add handling of init_dma_desc_rings() return value

Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-08-12 22:11:29 -07:00
..
chain_mode.c stmmac: code tidy-up 2013-04-08 16:55:27 -04:00
common.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2013-07-03 14:55:13 -07:00
descs_com.h stmmac: code tidy-up 2013-04-08 16:55:27 -04:00
descs.h stmmac: code tidy-up 2013-04-08 16:55:27 -04:00
dwmac100_core.c stmmac: dity-up and rework the driver debug levels 2013-07-02 16:04:53 -07:00
dwmac100_dma.c stmmac: dity-up and rework the driver debug levels 2013-07-02 16:04:53 -07:00
dwmac100.h stmmac: add header inclusion protection 2012-08-24 13:25:05 -04:00
dwmac1000_core.c stmmac: dity-up and rework the driver debug levels 2013-07-02 16:04:53 -07:00
dwmac1000_dma.c stmmac: dity-up and rework the driver debug levels 2013-07-02 16:04:53 -07:00
dwmac1000.h stmmac: code tidy-up 2013-04-08 16:55:27 -04:00
dwmac_dma.h stmmac: code tidy-up 2013-04-08 16:55:27 -04:00
dwmac_lib.c stmmac: dity-up and rework the driver debug levels 2013-07-02 16:04:53 -07:00
enh_desc.c stmmac: dity-up and rework the driver debug levels 2013-07-02 16:04:53 -07:00
Kconfig net: Move MII out from under NET_CORE and hide it 2013-06-19 22:22:56 -07:00
Makefile stmmac: add the support for PTP hw clock driver 2013-03-26 12:53:37 -04:00
mmc_core.c stmmac: prevent interrupt loop with MMC RX IPC Counter 2013-04-11 16:03:22 -04:00
mmc.h stmmac: code tidy-up 2013-04-08 16:55:27 -04:00
norm_desc.c stmmac: dity-up and rework the driver debug levels 2013-07-02 16:04:53 -07:00
ring_mode.c net: stmmac: Fixed the condition of extend_desc for jumbo frame 2013-08-09 13:44:31 -07:00
stmmac_ethtool.c stmmac: add the support for PTP hw clock driver 2013-03-26 12:53:37 -04:00
stmmac_hwtstamp.c stmmac: add the support for PTP hw clock driver 2013-03-26 12:53:37 -04:00
stmmac_main.c stmmac: fix init_dma_desc_rings() to handle errors 2013-08-12 22:11:29 -07:00
stmmac_mdio.c dt:net:stmmac: Add dt specific phy reset callback support. 2013-07-04 14:34:17 -07:00
stmmac_pci.c stmmac: code tidy-up 2013-04-08 16:55:27 -04:00
stmmac_platform.c dt:net:stmmac: Add support to dwmac version 3.610 and 3.710 2013-07-04 14:34:17 -07:00
stmmac_ptp.c stmmac: improve/review and fix kernel-doc 2013-04-08 16:55:27 -04:00
stmmac_ptp.h stmmac: add IEEE PTPv1 and PTPv2 support. 2013-03-26 12:53:37 -04:00
stmmac.h stmmac: review private structure fields 2013-04-08 16:55:27 -04:00