Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 7b464c9 ("staging: r8188eu: Add files for new driver - part 4") Co-developed-by: Dan Carpenter <[email protected]> Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Dinghao Liu <[email protected]> Cc: stable <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information