linux_dsm_epyc7002/drivers/net/wireless/marvell
Colin Ian King 80ba4f1d36 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>
2016-09-17 18:26:32 +03:00
..
libertas libertas: fix non static symbol warning 2016-07-18 22:39:11 +03:00
libertas_tf net: wireless: marvell: libertas_tf: if_usb: don't print error when allocating urb fails 2016-08-13 14:53:41 -07:00
mwifiex mwifiex: fix null pointer deference when adapter is null 2016-09-17 18:26:32 +03:00
Kconfig mwl8k: move under marvell vendor directory 2015-11-18 14:28:30 +02:00
Makefile mwl8k: move under marvell vendor directory 2015-11-18 14:28:30 +02:00
mwl8k.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00