summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/mvm/sta.c
diff options
context:
space:
mode:
authorColin Ian King2016-09-16 11:37:31 +0200
committerKalle Valo2016-09-17 17:26:32 +0200
commit80ba4f1d365af206b9e818d17d22fed02fe5def0 (patch)
treea3b7ddd891315ad6defd4c8d80a8715eaaca149c /drivers/net/wireless/intel/iwlwifi/mvm/sta.c
parentmwifiex: fix error handling in mwifiex_create_custom_regdomain (diff)
downloadkernel-qcow2-linux-80ba4f1d365af206b9e818d17d22fed02fe5def0.tar.gz
kernel-qcow2-linux-80ba4f1d365af206b9e818d17d22fed02fe5def0.tar.xz
kernel-qcow2-linux-80ba4f1d365af206b9e818d17d22fed02fe5def0.zip
mwifiex: fix null pointer deference when adapter is null
If adapter is null the error exit path in mwifiex_shutdown_sw is to down the semaphore sem and print some debug via mwifiex_dbg. However, passing a NULL adapter to mwifiex_dbg causes a null pointer deference when accessing adapter->dev. This fix checks for a null adapter at the start of the function and to exit without the need to up the semaphore and we also skip the debug to avoid the null pointer dereference. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/sta.c')
0 files changed, 0 insertions, 0 deletions