diff options
| author | Andrew Lunn <[email protected]> | 2016-12-11 21:07:19 +0100 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2016-12-16 13:26:50 -0500 |
| commit | 66e2809dd324f0ab5e1f9d997b40d4d31a2e42b1 (patch) | |
| tree | b60dbf21d59a48e9cd0fa9944cd7b3469292082b /tools/perf/scripts/python/bin | |
| parent | e28ceeb10cd1883a4b6528c17a2b1f2024e35cad (diff) | |
net: dsa: mv88e6xxx: Fix opps when adding vlan bridge
A port is not necessarily assigned to a netdev. And a port does not
need to be a member of a bridge. So when iterating over all ports,
check before using the netdev and bridge_dev for a port. Otherwise we
dereference a NULL pointer.
Fixes: da9c359e19f0 ("net: dsa: mv88e6xxx: check hardware VLAN in use")
Signed-off-by: Andrew Lunn <[email protected]>
Reviewed-by: Vivien Didelot <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions