linux-sg2042/drivers/net/dsa/mv88e6xxx
Andrew Lunn 66e2809dd3 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: da9c359e19 ("net: dsa: mv88e6xxx: check hardware VLAN in use")
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-12-16 13:26:50 -05:00
..
Kconfig net: dsa: mv88e6xxx: Select IRQ_DOMAIN 2016-11-18 13:54:22 -05:00
Makefile net: dsa: mv88e6xxx: add port files 2016-11-04 14:39:58 -04:00
chip.c net: dsa: mv88e6xxx: Fix opps when adding vlan bridge 2016-12-16 13:26:50 -05:00
global1.c net: dsa: mv88e6xxx: add PPU operations 2016-12-06 11:32:28 -05:00
global1.h net: dsa: mv88e6xxx: add PPU operations 2016-12-06 11:32:28 -05:00
global2.c net: dsa: mv88e6xxx: Reserved Management frames to CPU 2016-12-03 23:18:38 -05:00
global2.h net: dsa: mv88e6xxx: Reserved Management frames to CPU 2016-12-03 23:18:38 -05:00
mv88e6xxx.h net: dsa: mv88e6xxx: add PPU operations 2016-12-06 11:32:28 -05:00
port.c net: dsa: mv88e6xxx: Implement mv88e6390 pause control 2016-12-03 23:18:39 -05:00
port.h net: dsa: mv88e6xxx: Implement mv88e6390 pause control 2016-12-03 23:18:39 -05:00