Florian Fainelli
06d4d450db
net: dsa: Fix legacy probing
...
After commit 6d3c8c0dd8 ("net: dsa: Remove master_netdev and
use dst->cpu_dp->netdev") and a29342e739 ("net: dsa: Associate
slave network device with CPU port") we would be seeing NULL pointer
dereferences when accessing dst->cpu_dp->netdev too early. In the legacy
code, we actually know early in advance the master network device, so
pass it down to the relevant functions.
Fixes: 6d3c8c0dd8 ("net: dsa: Remove master_netdev and use dst->cpu_dp->netdev")
Fixes: a29342e739 ("net: dsa: Associate slave network device with CPU port")
Reported-by: Jason Cobham <jcobham@questertangent.com>
Tested-by: Jason Cobham <jcobham@questertangent.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-06-17 22:59:45 -04:00
..
6lowpan
9p
802
networking: make skb_push & __skb_push return void pointers
2017-06-16 11:48:40 -04:00
8021q
networking: make skb_push & __skb_push return void pointers
2017-06-16 11:48:40 -04:00
appletalk
networking: make skb_push & __skb_push return void pointers
2017-06-16 11:48:40 -04:00
atm
networking: make skb_put & friends return void pointers
2017-06-16 11:48:39 -04:00
ax25
networking: make skb_push & __skb_push return void pointers
2017-06-16 11:48:40 -04:00
batman-adv
networking: make skb_put & friends return void pointers
2017-06-16 11:48:39 -04:00
bluetooth
networking: add and use skb_put_u8()
2017-06-16 11:48:40 -04:00
bpf
bridge
networking: make skb_push & __skb_push return void pointers
2017-06-16 11:48:40 -04:00
caif
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2017-06-15 11:59:32 -04:00
can
networking: introduce and use skb_put_data()
2017-06-16 11:48:37 -04:00
ceph
core
net: remove DST_NOCACHE flag
2017-06-17 22:54:01 -04:00
dcb
dccp
networking: make skb_push & __skb_push return void pointers
2017-06-16 11:48:40 -04:00
decnet
net: remove DST_NOGC flag
2017-06-17 22:54:01 -04:00
dns_resolver
dsa
net: dsa: Fix legacy probing
2017-06-17 22:59:45 -04:00
ethernet
networking: make skb_push & __skb_push return void pointers
2017-06-16 11:48:40 -04:00
hsr
hsr: fix incorrect warning
2017-06-12 15:21:20 -04:00
ieee802154
networking: introduce and use skb_put_data()
2017-06-16 11:48:37 -04:00
ife
ipv4
net: remove DST_NOCACHE flag
2017-06-17 22:54:01 -04:00
ipv6
net: remove DST_NOCACHE flag
2017-06-17 22:54:01 -04:00
ipx
irda
networking: make skb_push & __skb_push return void pointers
2017-06-16 11:48:40 -04:00
iucv
networking: make skb_push & __skb_push return void pointers
2017-06-16 11:48:40 -04:00
kcm
key
networking: make skb_put & friends return void pointers
2017-06-16 11:48:39 -04:00
l2tp
l2tp: cast l2tp traffic counter to unsigned
2017-06-10 16:14:27 -04:00
l3mdev
lapb
llc
net: llc: add lock_sock in llc_ui_bind to avoid a race condition
2017-05-26 14:20:29 -04:00
mac80211
networking: make skb_push & __skb_push return void pointers
2017-06-16 11:48:40 -04:00
mac802154
net: Fix inconsistent teardown and release of private netdev state.
2017-06-07 15:53:24 -04:00
mpls
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2017-06-06 22:20:08 -04:00
ncsi
networking: make skb_push & __skb_push return void pointers
2017-06-16 11:48:40 -04:00
netfilter
networking: make skb_put & friends return void pointers
2017-06-16 11:48:39 -04:00
netlabel
netlink
networking: make skb_put & friends return void pointers
2017-06-16 11:48:39 -04:00
netrom
nfc
networking: add and use skb_put_u8()
2017-06-16 11:48:40 -04:00
openvswitch
networking: convert many more places to skb_put_zero()
2017-06-16 11:48:35 -04:00
packet
net/packet: remove unneeded declaraion of tpacket_snd().
2017-06-10 16:15:25 -04:00
phonet
net: Fix inconsistent teardown and release of private netdev state.
2017-06-07 15:53:24 -04:00
psample
networking: make skb_put & friends return void pointers
2017-06-16 11:48:39 -04:00
qrtr
networking: make skb_put & friends return void pointers
2017-06-16 11:48:39 -04:00
rds
rds: tcp: Set linger when rejecting an incoming conn in rds_tcp_accept_one
2017-06-16 12:45:15 -04:00
rfkill
net: rfkill: gpio: Switch to devm_acpi_dev_add_driver_gpios()
2017-06-13 11:07:51 +02:00
rose
rxrpc
networking: convert many more places to skb_put_zero()
2017-06-16 11:48:35 -04:00
sched
net: sched: act_tunnel_key: make UDP checksum configurable
2017-06-15 14:21:03 -04:00
sctp
networking: make skb_push & __skb_push return void pointers
2017-06-16 11:48:40 -04:00
smc
strparser
sunrpc
SUNRPC: ensure correct error is reported by xs_tcp_setup_socket()
2017-05-31 12:26:44 -04:00
switchdev
net: switchdev: Change notifier chain to be atomic
2017-06-08 14:16:24 -04:00
tipc
net: tipc: Fix a sleep-in-atomic bug in tipc_msg_reverse
2017-06-10 18:20:38 -04:00
tls
tls: update Kconfig
2017-06-17 22:56:46 -04:00
unix
af_unix: Add sockaddr length checks before accessing sa_family in bind and connect handlers
2017-06-09 10:10:24 -04:00
vmw_vsock
networking: make skb_put & friends return void pointers
2017-06-16 11:48:39 -04:00
wimax
wireless
networking: make skb_push & __skb_push return void pointers
2017-06-16 11:48:40 -04:00
x25
networking: introduce and use skb_put_data()
2017-06-16 11:48:37 -04:00
xfrm
net: remove DST_NOCACHE flag
2017-06-17 22:54:01 -04:00
compat.c
Kconfig
tls: kernel TLS support
2017-06-15 12:12:40 -04:00
Makefile
tls: kernel TLS support
2017-06-15 12:12:40 -04:00
socket.c
sysctl_net.c