Re: [PATCH net-next] net: dsa: Fix legacy probing

2017-06-17 Thread David Miller
From: Florian Fainelli Date: Fri, 16 Jun 2017 16:42:11 -0700 > After commit 6d3c8c0dd88a ("net: dsa: Remove master_netdev and > use dst->cpu_dp->netdev") and a29342e73911 ("net: dsa: Associate > slave network device with CPU port") we would be seeing NULL pointer > dereferences when accessing dst

Re: [PATCH net-next] net: dsa: Fix legacy probing

2017-06-17 Thread Vivien Didelot
Florian Fainelli writes: > After commit 6d3c8c0dd88a ("net: dsa: Remove master_netdev and > use dst->cpu_dp->netdev") and a29342e73911 ("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 l

[PATCH net-next] net: dsa: Fix legacy probing

2017-06-16 Thread Florian Fainelli
After commit 6d3c8c0dd88a ("net: dsa: Remove master_netdev and use dst->cpu_dp->netdev") and a29342e73911 ("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