diff options
author | Robert Hancock <hancock@sedsystems.ca> | 2019-06-12 14:33:32 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-14 19:10:03 -0700 |
commit | 6bb9e376c2a4cc5120c3bf5fd3048b9a0a6ec1f8 (patch) | |
tree | f9edb2d3346b55ab3d528ab36349a76d1e4413ce /crypto/cts.c | |
parent | 2309f51797106b3643b22abced39ff443df2407d (diff) |
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: 7c6ff470aa867f53 ("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>
Diffstat (limited to 'crypto/cts.c')
0 files changed, 0 insertions, 0 deletions