From: Larry Finger Date: Wed, 4 Sep 2013 20:56:04 +0000 (-0500) Subject: staging: r8188eu: Fix smatch warnings for hal/rtl8188e_phycfg.c X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~714 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f23e3c1e9c9c55afff39a37200e9760692ff16b6;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed