linux/drivers/net/wireless/rtlwifi/rtl8723be
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
..
def.h
dm.c
dm.h
fw.c rtlwifi: rtl8723be: Fix smatch warnings 2014-03-06 14:29:57 -05:00
fw.h
hw.c rtlwifi: rtl8723be: Fix sparse errors 2014-03-06 14:29:57 -05:00
hw.h
led.c
led.h
Makefile rtlwifi: Move common routines to core 2014-03-06 14:29:56 -05:00
phy.c rtlwifi: rtl8723be: Fix array dimension problems 2014-03-13 14:05:40 -04:00
phy.h
pwrseq.c
pwrseq.h rtlwifi: Move common routines to core 2014-03-06 14:29:56 -05:00
pwrseqcmd.c
pwrseqcmd.h
reg.h rtlwifi: Move common routines to core 2014-03-06 14:29:56 -05:00
rf.c
rf.h
sw.c rtlwifi: rtl8723be: Fix sparse errors 2014-03-06 14:29:57 -05:00
sw.h
table.c
table.h
trx.c
trx.h