linux_dsm_epyc7002/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 rtlwifi: Implement a common rtl_phy_scan_operation_backup() routine 2013-10-03 16:24:30 -04:00
cam.c rtlwifi: slight optimization of addr compare 2013-12-26 13:31:35 -05:00
cam.h rtlwifi: Remove extern from function prototypes 2013-09-24 18:06:51 -07:00
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 rtlwifi: Fix build errors for unusual cases 2013-07-18 16:22:00 -04:00
debug.h rtlwifi: rtl8192c: rtl8192ce: rtl8192cu: rtl8192de: rtl8723ae: Add changes required by adding rtl81988ee 2013-04-01 16:20:53 -04:00
efuse.c rtlwifi: fix null dereference on efuse_word on kmalloc fail returns NULL 2013-11-11 14:38:58 -05:00
efuse.h rtlwifi: Remove extern from function prototypes 2013-09-24 18:06:51 -07:00
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 rtlwifi: Update copyright dates 2012-01-24 14:08:37 -05:00
regd.c rtlwifi: fix usage of freq_reg_info() 2013-12-05 14:54:51 -05:00
regd.h wireless: make the reg_notifier() void 2013-01-14 11:32:44 +01:00
stats.c rtlwifi: Add missing code to PWDB statics routine 2013-12-05 14:55:20 -05:00
stats.h rtlwifi: Modify files for addition of rtl8723ae 2012-11-14 14:55:30 -05:00
usb.c rtlwifi: rtl8192ce: rtl8192cu: rtl8192de: rtl8192se: rtl8723ae: rtl8723be: rtl8188eu: Modify for new API 2014-03-06 14:29:56 -05:00
usb.h rtlwifi: usb: defer rx processing to tasklet 2013-03-25 16:42:22 -04:00
wifi.h rtlwifi: rtl8723be: Fix smatch warnings 2014-03-06 14:29:57 -05:00