linux/drivers/net/dsa
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
..
b53 net: dsa: b53: Fix VLAN usage and how we treat CPU port 2016-11-16 23:25:29 -05:00
mv88e6xxx net: dsa: mv88e6xxx: Fix opps when adding vlan bridge 2016-12-16 13:26:50 -05:00
Kconfig net-next: dsa: add new driver for qca8xxx family 2016-09-16 04:31:51 -04:00
Makefile net-next: dsa: add new driver for qca8xxx family 2016-09-16 04:31:51 -04:00
bcm_sf2.c net: dsa: bcm_sf2: Ensure we re-negotiate EEE during after link change 2016-11-24 15:45:53 -05:00
bcm_sf2.h net: dsa: bcm_sf2: Get VLAN_PORT_MASK from b53_device 2016-09-11 19:37:02 -07:00
bcm_sf2_regs.h net: dsa: bcm_sf2: Remove duplicate code 2016-08-26 13:15:48 -07:00
mv88e6060.c net: dsa: remove ds_to_priv 2016-09-01 22:51:12 -07:00
mv88e6060.h net: dsa: Keep the mii bus and address in the private structure 2016-04-13 18:15:23 -04:00
qca8k.c net: dsa: qca8k: use mdio_module_driver to simplify the code 2016-09-22 03:17:34 -04:00
qca8k.h net-next: dsa: add new driver for qca8xxx family 2016-09-16 04:31:51 -04:00