From: Florian Fainelli
Date: Mon, 28 Aug 2017 17:10:51 -0700
> If we do not have a master network device attached dst->cpu_dp will be
> NULL and accessing cpu_dp->netdev will create a trace similar to the one
> below. The correct check is on dst->cpu_dp period.
...
> Reported-by: Dan Carpenter
If we do not have a master network device attached dst->cpu_dp will be
NULL and accessing cpu_dp->netdev will create a trace similar to the one
below. The correct check is on dst->cpu_dp period.
[1.004650] DSA: switch 0 0 parsed
[1.008078] Unable to handle kernel NULL pointer dereference a