[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190612164003.GB7893@t480s.localdomain>
Date: Wed, 12 Jun 2019 16:40:03 -0400
From: Vivien Didelot <vivien.didelot@...il.com>
To: Robert Hancock <hancock@...systems.ca>
Cc: netdev@...r.kernel.org, woojung.huh@...rochip.com,
UNGLinuxDriver@...rochip.com, andrew@...n.ch, f.fainelli@...il.com,
Robert Hancock <hancock@...systems.ca>
Subject: Re: [PATCH net] net: dsa: microchip: Don't try to read stats for
unused ports
On Wed, 12 Jun 2019 14:33:32 -0600, Robert Hancock <hancock@...systems.ca> 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: 7c6ff470aa867f53 ("net: dsa: microchip: add MIB counter reading
> support")
> Signed-off-by: Robert Hancock <hancock@...systems.ca>
Reviewed-by: Vivien Didelot <vivien.didelot@...il.com>
Powered by blists - more mailing lists