aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorRobert Hancock <[email protected]>2019-06-12 20:33:32 +0000
committerDavid S. Miller <[email protected]>2019-06-15 02:10:03 +0000
commit6bb9e376c2a4cc5120c3bf5fd3048b9a0a6ec1f8 (patch)
treef9edb2d3346b55ab3d528ab36349a76d1e4413ce /net/ipv4/tcp_output.c
parentMerge branch 'qmi_wwan-fix-QMAP-handling' (diff)
downloadkernel-6bb9e376c2a4cc5120c3bf5fd3048b9a0a6ec1f8.tar.gz
kernel-6bb9e376c2a4cc5120c3bf5fd3048b9a0a6ec1f8.zip
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 <[email protected]> Reviewed-by: Vivien Didelot <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions