linux_dsm_epyc7002/drivers/net/wireless
Johannes Berg 704da534af iwlagn: fix firmware loading TLV error path
gcc complains about the firmware loading:

iwl-agn.c: In function ‘iwlagn_load_firmware’:
iwl-agn.c:1860: warning: ‘tlv_len’ may be used uninitialized in this function
iwl-agn.c:1861: warning: ‘tlv_type’ may be used uninitialized in this function
iwl-agn.c:1862: warning: ‘tlv_data’ may be used uninitialized in this function

This is almost correct but we do do break out of the TLV
parsing loop when setting ret. However, the code is hard
to follow, and clearly even the compiler is having issues
with it too.

Additionally, however, the current code is wrong. If there
is a TLV length check error, the code will report
	invalid TLV after parsing: ...
because "len" will still be non-zero as we broke out of
the loop.

So to remove the warning and fix that issue, make the code
easier to read by doing length checking with an error label.
As a result, we can completely remove the "ret" variable.

Also, while at it, remove the "fixed_tlv_size" variable
since each TLV type has its own specified length, it just
happens that we have only variable length, flags (0 length)
and u32 TLVs right now. It should still be checked with more
explicit length checks to make it easier to understand.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
2010-07-23 08:42:04 -07:00
..
ath ath9k: correct sparse identified endian bug in ath_paprd_calibrate 2010-07-20 16:49:39 -04:00
b43 b43: silence phy_n sparse warnings 2010-07-21 14:49:46 -04:00
b43legacy b43legacy: replace the ssb_dma API with the generic DMA API 2010-06-04 16:00:42 -04:00
hostap hostap: fixup strlen() math 2010-07-12 16:05:32 -04:00
ipw2x00 libipw: correct sparse warnings and mark some variables static 2010-07-20 16:49:40 -04:00
iwlwifi iwlagn: fix firmware loading TLV error path 2010-07-23 08:42:04 -07:00
iwmc3200wifi cfg80211/mac80211: Update set_tx_power to use mBm instead of dBm units 2010-06-24 15:42:33 -04:00
libertas libertas: convert new uses of __attribute__ ((packed)) to __packed 2010-07-14 13:52:46 -04:00
libertas_tf Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 2010-06-17 16:21:14 -04:00
orinoco orinoco_usb: potential null dereference 2010-07-16 14:03:42 -04:00
p54 Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 2010-06-17 16:21:14 -04:00
prism54 prism54: call BUG_ON() earlier 2010-07-12 16:05:32 -04:00
rt2x00 rt2x00: correct sparse warning in rt2x00debug.c 2010-07-20 16:49:41 -04:00
rtl818x rtl8180: improve signal reporting for rtl8185 hardware 2010-07-20 16:53:09 -04:00
wl12xx wl1271: use __packed annotation 2010-07-12 16:05:31 -04:00
zd1211rw zd1211rw: change ZD_REGDOMAIN_JAPAN_* naming 2010-06-16 14:58:46 -04:00
adm8211.c adm8211: fix memory leak 2010-07-12 16:05:32 -04:00
adm8211.h
airo_cs.c
airo.c wireless: airo: delete netdev from list after it is freed 2010-07-14 13:52:45 -04:00
airo.h
at76c50x-usb.c at76c50x-usb: Extract bssid from authentication frame 2010-06-24 15:42:33 -04:00
at76c50x-usb.h at76c50x-usb: Extract bssid from authentication frame 2010-06-24 15:42:33 -04:00
atmel_cs.c
atmel_pci.c
atmel.c
atmel.h
Kconfig
mac80211_hwsim.c mac80211_hwsim: fix fake_hw_scan 2010-06-18 15:11:14 -04:00
Makefile
mwl8k.c mwl8k: correct/silence sparse warnings 2010-07-20 16:49:42 -04:00
ray_cs.c
ray_cs.h
rayctl.h
rndis_wlan.c cfg80211/mac80211: Update set_tx_power to use mBm instead of dBm units 2010-06-24 15:42:33 -04:00
wl3501_cs.c
wl3501.h
zd1201.c
zd1201.h