Skip to content
Commit 06d4d450 authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller
Browse files

net: dsa: Fix legacy probing

After commit 6d3c8c0d ("net: dsa: Remove master_netdev and
use dst->cpu_dp->netdev") and a29342e7 ("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: 6d3c8c0d ("net: dsa: Remove master_netdev and use dst->cpu_dp->netdev")
Fixes: a29342e7

 ("net: dsa: Associate slave network device with CPU port")
Reported-by: default avatarJason Cobham <jcobham@questertangent.com>
Tested-by: default avatarJason Cobham <jcobham@questertangent.com>
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Reviewed-by: default avatarVivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d807ec65
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment