diff options
author | Dinghao Liu <dinghao.liu@zju.edu.cn> | 2020-07-28 15:21:51 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-28 10:18:53 +0200 |
commit | 11536442a3b4e1de6890ea5e805908debb74f94a (patch) | |
tree | f67efdcb94fd98cb5a458821767752b694a0e4d0 /samples/mic | |
parent | 53754e432c0cdcb56a082fb1c06ed1ac403f3cdf (diff) |
Staging: rtl8188eu: rtw_mlme: Fix uninitialized variable authmode
The variable authmode can be uninitialized. The danger would be if
it equals to _WPA_IE_ID_ (0xdd) or _WPA2_IE_ID_ (0x33). We can avoid
this by setting it to zero instead. This is the approach that was
used in the rtl8723bs driver.
Fixes: 7b464c9fa5cc ("staging: r8188eu: Add files for new driver - part 4")
Co-developed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200728072153.9202-1-dinghao.liu@zju.edu.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples/mic')
0 files changed, 0 insertions, 0 deletions