summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2017-06-16 16:42:11 -0700
committerDavid S. Miller <davem@davemloft.net>2017-06-17 22:59:45 -0400
commit06d4d450db770a70b29fa0244d50390c85e7e3c7 (patch)
tree4ff3a224dd92c8c4ea757dea32c16c10056909e2 /drivers
parentd807ec656f868c1800e38cefa98be3ec680f6a1f (diff)
downloadblackbird-op-linux-06d4d450db770a70b29fa0244d50390c85e7e3c7.tar.gz
blackbird-op-linux-06d4d450db770a70b29fa0244d50390c85e7e3c7.zip
net: dsa: Fix legacy probing
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 in advance the master network device, so pass it down to the relevant functions. Fixes: 6d3c8c0dd88a ("net: dsa: Remove master_netdev and use dst->cpu_dp->netdev") Fixes: a29342e73911 ("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>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud