linux_dsm_epyc7002/drivers/net/dsa/microchip
Robert Hancock 6bb9e376c2 net: dsa: microchip: Don't try to read stats for unused ports
If some of the switch ports were not listed in the device tree, due to
being unused, the ksz_mib_read_work function ended up accessing a NULL
dp->slave pointer and causing an oops. Skip checking statistics for any
unused ports.

Fixes: 7c6ff470aa ("net: dsa: microchip: add MIB counter reading support")
Signed-off-by: Robert Hancock <hancock@sedsystems.ca>
Reviewed-by: Vivien Didelot <vivien.didelot@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-06-14 19:10:03 -07:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
ksz9477_reg.h net: dsa: microchip: rename ksz_9477_reg.h to ksz9477_reg.h 2018-11-20 20:57:12 -08:00
ksz9477_spi.c net: dsa: microchip: add KSZ9893 switch support 2019-03-03 13:48:49 -08:00
ksz9477.c net: dsa: microchip: mark expected switch fall-through 2019-04-03 21:38:29 -07:00
ksz_common.c net: dsa: microchip: Don't try to read stats for unused ports 2019-06-14 19:10:03 -07:00
ksz_common.h dsa: Remove phydev parameter from disable_port call 2019-02-24 22:30:34 -08:00
ksz_priv.h net: dsa: microchip: add port_cleanup function 2019-02-24 17:49:59 -08:00
ksz_spi.h net: dsa: microchip: break KSZ9477 DSA driver into two files 2018-11-20 20:57:12 -08:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00