diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-06-01 08:24:08 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2018-06-18 11:55:15 +0300 |
commit | c1e3f64f87381ed3768b9247ab0cd08b41927da6 (patch) | |
tree | f8ed791583b398e7006d200fdc3e9316e67f1270 /drivers/net/wireless/realtek/rtlwifi/usb.c | |
parent | ce397d215ccd07b8ae3f71db689aedb85d56ab40 (diff) |
qtnfmac: fix NULL pointer dereference
In case *vif* is NULL at 655: if (!vif), the execution path jumps to
label out, where *vif* is dereferenced at 679:
if (vif->sta_state == QTNF_STA_CONNECTING)
Fix this by immediately returning when *vif* is NULL instead of
jumping to label out.
Addresses-Coverity-ID: 1469567 ("Dereference after null check")
Fixes: 480daa9cb62c ("qtnfmac: fix invalid STA state on EAPOL failure")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Sergey Matyukevich <sergey.matyukevich.os@quanenna.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/realtek/rtlwifi/usb.c')
0 files changed, 0 insertions, 0 deletions