linux_dsm_epyc7002/drivers/net/wireless/ath/ath5k
Colin Ian King 8fed6823e0 ath5k: fix memory leak on buf on failed eeprom read
The AR5K_EEPROM_READ macro returns with -EIO if a read error
occurs causing a memory leak on the allocated buffer buf. Fix
this by explicitly calling ath5k_hw_nvram_read and exiting on
the via the freebuf label that performs the necessary free'ing
of buf when a read error occurs.

Detected by CoverityScan, CID#1248782 ("Resource Leak")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2017-05-19 10:51:57 +03:00
..
ahb.c net: ath5k: fix build errors when linux/phy*.h is removed from net/dsa.h 2017-02-10 13:51:04 -05:00
ani.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
ani.h
ath5k.h average: change to declare precision, not factor 2017-03-02 08:32:46 +01:00
attach.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
base.c wireless: Set NL80211_EXT_FEATURE_CQM_RSSI_LIST in multiple drivers 2017-03-06 09:21:39 +01:00
base.h
caps.c
debug.c ath5k: fix memory leak on buf on failed eeprom read 2017-05-19 10:51:57 +03:00
debug.h
desc.c
desc.h
dma.c
eeprom.c
eeprom.h
gpio.c
initvals.c
Kconfig ath5k: use DECLARE_EWMA 2015-08-20 14:10:22 -07:00
led.c ath5k: Change led pin configuration for compaq c700 laptop 2016-04-04 17:03:22 +03:00
mac80211-ops.c ath5k: drop bogus warning on drv_set_key with unsupported cipher 2017-01-12 12:56:37 +02:00
Makefile ath5k: revert AHB bus support removing 2014-11-24 07:45:28 +01:00
pci.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
pcu.c ath5k: fix misplaced default label in sifs switch 2016-06-14 15:18:09 +03:00
phy.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
qcu.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
reg.h
reset.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
rfbuffer.h
rfgain.h
rfkill.c
sysfs.c
trace.h