WSL2-Linux-Kernel/net
Dan Carpenter ac9c41d5a0 ethtool: potential NULL dereference in strset_prepare_data()
Smatch complains that the NULL checking isn't done consistently:

    net/ethtool/strset.c:253 strset_prepare_data()
    error: we previously assumed 'dev' could be null (see line 233)

It looks like there is a missing return on this path.

Fixes: 71921690f9 ("ethtool: provide string sets with STRSET_GET request")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-01-08 16:03:35 -08:00
..
6lowpan
9p
802
8021q
appletalk
atm
ax25
batman-adv
bluetooth
bpf
bpfilter
bridge
caif
can
ceph
core devlink: add devink notification when reporter update health state 2020-01-08 15:47:50 -08:00
dcb
dccp
decnet
dns_resolver
dsa net: dsa: Get information about stacked DSA protocol 2020-01-08 16:01:13 -08:00
ethernet
ethtool ethtool: potential NULL dereference in strset_prepare_data() 2020-01-08 16:03:35 -08:00
hsr hsr: fix dummy hsr_debugfs_rename() declaration 2020-01-08 13:09:54 -08:00
ieee802154
ife
ipv4 net: remove the check argument from __skb_gro_checksum_convert 2020-01-03 12:24:34 -08:00
ipv6 net: remove the check argument from __skb_gro_checksum_convert 2020-01-03 12:24:34 -08:00
iucv
kcm
key
l2tp l2tp: Remove redundant BUG_ON() check in l2tp_pernet 2020-01-03 12:26:07 -08:00
l3mdev
lapb
llc
mac80211
mac802154
mpls
ncsi net/ncsi: Send device address as source address 2020-01-08 13:09:18 -08:00
netfilter
netlabel
netlink
netrom
nfc
nsh
openvswitch
packet
phonet net: Remove redundant BUG_ON() check in phonet_pernet 2020-01-03 12:25:50 -08:00
psample
qrtr
rds
rfkill
rose net/rose: remove redundant assignment to variable failed 2020-01-07 13:52:28 -08:00
rxrpc
sched
sctp
smc
strparser
sunrpc
switchdev
tipc
tls
unix
vmw_vsock
wimax
wireless
x25
xdp
xfrm
Kconfig
Makefile
compat.c
socket.c socket: fix unused-function warning 2020-01-08 15:02:21 -08:00
sysctl_net.c