Thread (3 messages) 3 messages, 3 authors, 2017-06-18

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

flat view

From: David Miller <davem@davemloft.net>
Date: 2017-06-18 03:00:10

From: Florian Fainelli <f.fainelli@gmail.com>
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->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 <redacted>
Tested-by: Jason Cobham <redacted>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help