linux/drivers/net/wireless/rtlwifi
Larry Finger 4e3b3bcd81 rtlwifi: rtl8723be: Fix array dimension problems
Commit a619d1abe2 leads to the following static checker warning:

drivers/net/wireless/rtlwifi/rtl8723be/phy.c:667 _rtl8723be_store_tx_power_by_rate()
error: buffer overflow 'rtlphy->tx_power_by_rate_offset[band]' 4 <= 5

This warning arises because the code is testing the indices for the wrong maximum
values. In addition, the tests merely putput a warning, and then procedes to
corrupt memory. With this change, any such invalid memory access is avoided.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2014-03-13 14:05:40 -04:00
..
btcoexist rtlwifi: Move common routines to core 2014-03-06 14:29:56 -05:00
rtl8188ee rtlwifi: rtl8188ee: Fix too long disable of IRQs 2014-03-06 14:29:57 -05:00
rtl8192c rtlwifi: rtl8192c-common: Fix sparse warning 2013-12-09 15:37:55 -05:00
rtl8192ce rtlwifi: rtl8192ce: Handle unused switch case 2014-03-06 14:29:57 -05:00
rtl8192cu rtlwifi: rtl8192cu: Fix too long disable of IRQs 2014-03-06 14:29:56 -05:00
rtl8192de rtlwifi: Move common routines to core 2014-03-06 14:29:56 -05:00
rtl8192se rtlwifi: rtl8192se: Fix too long disable of IRQs 2014-03-06 14:29:57 -05:00
rtl8723ae rtlwifi: rtl8723ae: Fix too long disable of IRQs 2014-03-06 14:29:57 -05:00
rtl8723be rtlwifi: rtl8723be: Fix array dimension problems 2014-03-13 14:05:40 -04:00
rtl8723com rtlwifi: rtl8723be: rtl8723com: Remove unused allow_all_destaddr functions 2014-03-06 14:29:56 -05:00
base.c Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next 2014-01-13 14:40:59 -05:00
base.h
cam.c rtlwifi: slight optimization of addr compare 2013-12-26 13:31:35 -05:00
cam.h
core.c rtlwifi: Move common routines to core 2014-03-06 14:29:56 -05:00
core.h rtlwifi: Move common routines to core 2014-03-06 14:29:56 -05:00
debug.c
debug.h
efuse.c
efuse.h
Kconfig rtlwifi: rtl8723be: Add new driver 2014-03-04 13:25:39 -05:00
Makefile rtlwifi: rtl8723be: Add new driver 2014-03-04 13:25:39 -05:00
pci.c rtlwifi: rtl8192ce: rtl8192cu: rtl8192de: rtl8192se: rtl8723ae: rtl8723be: rtl8188eu: Modify for new API 2014-03-06 14:29:56 -05:00
pci.h rtlwifi: rtl8192ce: rtl8192cu: rtl8192de: rtl8192se: rtl8723ae: rtl8723be: rtl8188eu: Modify for new API 2014-03-06 14:29:56 -05:00
ps.c rtlwifi: Move common routines to core 2014-03-06 14:29:56 -05:00
ps.h rtlwifi: Move common routines to core 2014-03-06 14:29:56 -05:00
rc.c mac80211: remove module handling from rate control ops 2014-02-04 21:48:26 +01:00
rc.h
regd.c
regd.h
stats.c rtlwifi: Add missing code to PWDB statics routine 2013-12-05 14:55:20 -05:00
stats.h
usb.c rtlwifi: rtl8192ce: rtl8192cu: rtl8192de: rtl8192se: rtl8723ae: rtl8723be: rtl8188eu: Modify for new API 2014-03-06 14:29:56 -05:00
usb.h
wifi.h rtlwifi: rtl8723be: Fix smatch warnings 2014-03-06 14:29:57 -05:00