Re: [PATCH net] net: dsa: microchip: Don't try to read stats for unused ports

2019-06-14 Thread David Miller
From: Robert Hancock Date: Wed, 12 Jun 2019 14:33:32 -0600 > 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. >

Re: [PATCH net] net: dsa: microchip: Don't try to read stats for unused ports

2019-06-13 Thread Florian Fainelli
On 6/12/19 1:33 PM, Robert Hancock wrote: > 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: 7c6ff470a

Re: [PATCH net] net: dsa: microchip: Don't try to read stats for unused ports

2019-06-12 Thread Andrew Lunn
On Wed, Jun 12, 2019 at 02:33:32PM -0600, Robert Hancock wrote: > 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.

Re: [PATCH net] net: dsa: microchip: Don't try to read stats for unused ports

2019-06-12 Thread Vivien Didelot
On Wed, 12 Jun 2019 14:33:32 -0600, Robert Hancock wrote: > 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. >

[PATCH net] net: dsa: microchip: Don't try to read stats for unused ports

2019-06-12 Thread Robert Hancock
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