diff options
author | Larry Finger | 2013-09-04 22:56:04 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2013-09-17 16:47:45 +0200 |
commit | f23e3c1e9c9c55afff39a37200e9760692ff16b6 (patch) | |
tree | 6dc802aa00a6c2c011d5e5824adbe49861ec4b83 /drivers/staging/rtl8188eu/include/Hal8188EPhyCfg.h | |
parent | staging: r8188eu: Fix smatch warning in os_dep/ioctl_linux.c (diff) | |
download | kernel-qcow2-linux-f23e3c1e9c9c55afff39a37200e9760692ff16b6.tar.gz kernel-qcow2-linux-f23e3c1e9c9c55afff39a37200e9760692ff16b6.tar.xz kernel-qcow2-linux-f23e3c1e9c9c55afff39a37200e9760692ff16b6.zip |
staging: r8188eu: Fix smatch warnings for hal/rtl8188e_phycfg.c
Smatch reports the following:
drivers/staging/rtl8188eu/hal/rtl8188e_phycfg.c:857 getTxPowerIndex88E() error: buffer overflow 'pHalData->BW20_24G_Diff' 2 <= 2
drivers/staging/rtl8188eu/hal/rtl8188e_phycfg.c:864 getTxPowerIndex88E() error: buffer overflow 'pHalData->BW20_24G_Diff' 2 <= 2
The array in question is large enough to handle RADIO_PATH_X, where X is A or B.
The lines in question refer to RADIO_PATH_C, which is defined as 2.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu/include/Hal8188EPhyCfg.h')
-rw-r--r-- | drivers/staging/rtl8188eu/include/Hal8188EPhyCfg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8188eu/include/Hal8188EPhyCfg.h b/drivers/staging/rtl8188eu/include/Hal8188EPhyCfg.h index c4769e20a5c3..25cae8147e73 100644 --- a/drivers/staging/rtl8188eu/include/Hal8188EPhyCfg.h +++ b/drivers/staging/rtl8188eu/include/Hal8188EPhyCfg.h @@ -75,7 +75,7 @@ enum rf_radio_path { #define MAX_PG_GROUP 13 -#define RF_PATH_MAX 2 +#define RF_PATH_MAX 3 #define MAX_RF_PATH RF_PATH_MAX #define MAX_TX_COUNT 4 /* path numbers */ |