aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wireless/realtek/rtlwifi/core.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-06-01 08:24:08 -0500
committerKalle Valo <kvalo@codeaurora.org>2018-06-18 11:55:15 +0300
commitc1e3f64f87381ed3768b9247ab0cd08b41927da6 (patch)
treef8ed791583b398e7006d200fdc3e9316e67f1270 /drivers/net/wireless/realtek/rtlwifi/core.c
parentce397d215ccd07b8ae3f71db689aedb85d56ab40 (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/core.c')
0 files changed, 0 insertions, 0 deletions