linux/drivers/net/wireless/ath/wil6210
Colin Ian King db5a4d5e10 wil6210: fix potential null dereference of ndev before null check
The pointer ndev is being dereferenced before it is being null checked,
hence there is a potential null pointer deference. Fix this by only
dereferencing ndev after it has been null checked

Detected by CoverityScan, CID#1467010 ("Dereference before null check")

Fixes: e00243fab8 ("wil6210: infrastructure for multiple virtual interfaces")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-04-10 17:29:10 +03:00
..
boot_loader.h wil6210: fix random failure to bring network interface up 2018-01-25 07:32:23 +02:00
cfg80211.c wil6210: multiple VIFs support for connections and data path 2018-02-27 18:50:47 +02:00
debug.c wil6210: infrastructure for multiple virtual interfaces 2018-02-27 18:50:19 +02:00
debugfs.c wil6210: add debugfs 'mids' file 2018-02-27 18:50:54 +02:00
ethtool.c wil6210: infrastructure for multiple virtual interfaces 2018-02-27 18:50:19 +02:00
fw.c wil6210: support loading dedicated image for sparrow-plus devices 2017-01-27 19:49:26 +02:00
fw.h wil6210: support concurrency record in FW file 2018-02-27 18:50:11 +02:00
fw_inc.c wil6210: support concurrency record in FW file 2018-02-27 18:50:11 +02:00
interrupt.c wil6210: multiple VIFs support for connections and data path 2018-02-27 18:50:47 +02:00
Kconfig wil6210: make debugfs compilation optional 2017-08-31 15:19:31 +03:00
main.c wil6210: fix potential null dereference of ndev before null check 2018-04-10 17:29:10 +03:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
netdev.c wil6210: multiple VIFs support for connections and data path 2018-02-27 18:50:47 +02:00
p2p.c wil6210: rename p2p_wdev_mutex to vif_mutex 2018-02-27 18:50:40 +02:00
pcie_bus.c wil6210: multiple VIFs support for connections and data path 2018-02-27 18:50:47 +02:00
pm.c wil6210: multiple VIFs support for connections and data path 2018-02-27 18:50:47 +02:00
pmc.c wil6210: infrastructure for multiple virtual interfaces 2018-02-27 18:50:19 +02:00
pmc.h
rx_reorder.c wil6210: multiple VIFs support for connections and data path 2018-02-27 18:50:47 +02:00
trace.c
trace.h
txrx.c wil6210: multiple VIFs support for connections and data path 2018-02-27 18:50:47 +02:00
txrx.h wil6210: multiple VIFs support for connections and data path 2018-02-27 18:50:47 +02:00
wil6210.h wil6210: multiple VIFs support for connections and data path 2018-02-27 18:50:47 +02:00
wil_crash_dump.c wil6210: prevent parallel suspend and dump collection 2018-01-09 10:03:27 +02:00
wil_platform.c
wil_platform.h wil6210: set platform features based on FW capabilities 2018-01-09 10:03:21 +02:00
wmi.c wil6210: multiple VIFs support for connections and data path 2018-02-27 18:50:47 +02:00
wmi.h wil6210: set platform features based on FW capabilities 2018-01-09 10:03:21 +02:00