diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2014-04-10 13:46:56 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-04-16 14:41:45 -0400 |
commit | 2c33d7cc3875e75311d24a3bfe8d40ca201da2da (patch) | |
tree | ca878ad56f2ee98a17138c7c4f703c8cad2ec98f /drivers/staging | |
parent | e6b1ea773e0a6dd611278d0d6f81ea6ff9d6938b (diff) |
staging: r8723au: Add missing initialization of change_inx in sort algorithm
drivers/staging/rtl8723au/core/rtw_wlan_util.c: In function ‘WMMOnAssocRsp23a’:
drivers/staging/rtl8723au/core/rtw_wlan_util.c:684: warning: ‘change_inx’ may be used uninitialized in this function
Depending on the uninitialized data on the stack, the array may not be
sorted correctly.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/rtl8723au/core/rtw_wlan_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8723au/core/rtw_wlan_util.c b/drivers/staging/rtl8723au/core/rtw_wlan_util.c index e743b053b8a2..99d81e612e7b 100644 --- a/drivers/staging/rtl8723au/core/rtw_wlan_util.c +++ b/drivers/staging/rtl8723au/core/rtw_wlan_util.c | |||
@@ -681,7 +681,7 @@ void WMMOnAssocRsp23a(struct rtw_adapter *padapter) | |||
681 | inx[0] = 0; inx[1] = 1; inx[2] = 2; inx[3] = 3; | 681 | inx[0] = 0; inx[1] = 1; inx[2] = 2; inx[3] = 3; |
682 | 682 | ||
683 | if (pregpriv->wifi_spec == 1) { | 683 | if (pregpriv->wifi_spec == 1) { |
684 | u32 j, tmp, change_inx; | 684 | u32 j, tmp, change_inx = false; |
685 | 685 | ||
686 | /* entry indx: 0->vo, 1->vi, 2->be, 3->bk. */ | 686 | /* entry indx: 0->vo, 1->vi, 2->be, 3->bk. */ |
687 | for (i = 0; i < 4; i++) { | 687 | for (i = 0; i < 4; i++) { |