linux/drivers/net/wireless
Bolarinwa Olayemi Saheed 9a8ab2bfb6 ath9k: Check the return value of pcie_capability_read_*()
On failure pcie_capability_read_dword() sets it's last parameter, val
to 0. However, with Patch 14/14, it is possible that val is set to ~0 on
failure. This would introduce a bug because (x & x) == (~0 & x).

This bug can be avoided without changing the function's behaviour if the
return value of pcie_capability_read_dword is checked to confirm success.

Check the return value of pcie_capability_read_dword() to ensure success.

Suggested-by: Bjorn Helgaas <bjorn@helgaas.com>
Signed-off-by: Bolarinwa Olayemi Saheed <refactormyself@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200713175529.29715-2-refactormyself@gmail.com
2020-07-20 20:09:36 +03:00
..
admtek treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
ath ath9k: Check the return value of pcie_capability_read_*() 2020-07-20 20:09:36 +03:00
atmel treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
broadcom treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
cisco treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
intel First set of patches intended for v5.9 2020-06-15 20:23:23 +03:00
intersil Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-06-13 16:27:13 -07:00
marvell treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
mediatek treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
quantenna
ralink treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
realtek treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
rsi treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
st treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
ti treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
zydas treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
mac80211_hwsim.c
mac80211_hwsim.h
Makefile
ray_cs.c
ray_cs.h
rayctl.h
rndis_wlan.c
virt_wifi.c
wl3501.h
wl3501_cs.c