linux_dsm_epyc7002/net/wireless
Julian Squires 4052d3d2e8 cfg80211: check vendor command doit pointer before use
In the case where a vendor command does not implement doit, and has no
flags set, doit would not be validated and a NULL pointer dereference
would occur, for example when invoking the vendor command via iw.

I encountered this while developing new vendor commands.  Perhaps in
practice it is advisable to always implement doit along with dumpit,
but it seems reasonable to me to always check doit anyway, not just
when NEED_WDEV.

Signed-off-by: Julian Squires <julian@cipht.net>
Link: https://lore.kernel.org/r/20200706211353.2366470-1-julian@cipht.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2020-07-30 10:24:01 +02:00
..
certs
.gitignore
ap.c
chan.c cfg80211: treat 6 GHz channels as valid regardless of capability 2020-05-31 11:27:08 +02:00
core.c cfg80211: fix management registrations deadlock 2020-06-05 09:22:00 +02:00
core.h cfg80211: fix management registrations deadlock 2020-06-05 09:22:00 +02:00
debugfs.c
debugfs.h
ethtool.c
ibss.c
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-06-13 16:27:13 -07:00
lib80211_crypt_ccmp.c
lib80211_crypt_tkip.c
lib80211_crypt_wep.c
lib80211.c
Makefile
mesh.c
mlme.c cfg80211: fix management registrations deadlock 2020-06-05 09:22:00 +02:00
nl80211.c cfg80211: check vendor command doit pointer before use 2020-07-30 10:24:01 +02:00
nl80211.h
ocb.c
of.c
pmsr.c
radiotap.c
rdev-ops.h nl80211: add ability to report TX status for control port TX 2020-05-27 10:02:04 +02:00
reg.c
reg.h
scan.c
sme.c nl80211: really allow client-only BIGTK support 2020-05-31 11:26:05 +02:00
sysfs.c
sysfs.h
trace.c
trace.h nl80211: add ability to report TX status for control port TX 2020-05-27 10:02:04 +02:00
util.c nl80211: really allow client-only BIGTK support 2020-05-31 11:26:05 +02:00
wext-compat.c
wext-compat.h
wext-core.c
wext-priv.c
wext-proc.c
wext-sme.c
wext-spy.c