Files
android_kernel_xiaomi_sm8450/drivers/net/ethernet/broadcom
Florian Fainelli c2062ee3d9 net: systemport: Free DMA coherent descriptors on errors
In case bcm_sysport_init_tx_ring() is not able to allocate ring->cbs, we
would return with an error, and call bcm_sysport_fini_tx_ring() and it
would see that ring->cbs is NULL and do nothing. This would leak the
coherent DMA descriptor area, so we need to free it on error before
returning.

Reported-by: Eric Dumazet <edumazet@gmail.com>
Fixes: 80105befdb ("net: systemport: add Broadcom SYSTEMPORT Ethernet MAC driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-08-24 18:23:21 -07:00
..
2017-07-14 09:03:11 -07:00
2017-08-01 20:06:06 -07:00
2017-06-13 13:54:03 -04:00
2015-02-20 15:46:49 -05:00
2014-06-25 16:27:27 -07:00
2014-06-25 16:27:27 -07:00