linux/net/ethtool
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
..
bitset.c ethtool: netlink bitset handling 2019-12-27 16:40:01 -08:00
bitset.h ethtool: netlink bitset handling 2019-12-27 16:40:01 -08:00
common.c ethtool: provide link state with LINKSTATE_GET request 2019-12-27 16:40:02 -08:00
common.h ethtool: provide link state with LINKSTATE_GET request 2019-12-27 16:40:02 -08:00
ioctl.c ethtool: provide link state with LINKSTATE_GET request 2019-12-27 16:40:02 -08:00
linkinfo.c ethtool: add LINKINFO_NTF notification 2019-12-27 16:40:02 -08:00
linkmodes.c ethtool: remove set but not used variable 'lsettings' 2020-01-03 12:22:12 -08:00
linkstate.c ethtool: provide link state with LINKSTATE_GET request 2019-12-27 16:40:02 -08:00
Makefile ethtool: provide link state with LINKSTATE_GET request 2019-12-27 16:40:02 -08:00
netlink.c ethtool: fix ->reply_size() error handling 2020-01-08 16:03:35 -08:00
netlink.h ethtool: provide link state with LINKSTATE_GET request 2019-12-27 16:40:02 -08:00
strset.c ethtool: potential NULL dereference in strset_prepare_data() 2020-01-08 16:03:35 -08:00