[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d7873258-9404-74f6-08a8-470ab1092484@gmail.com>
Date: Wed, 12 Jun 2019 14:41:10 -0700
From: Florian Fainelli <f.fainelli@...il.com>
To: Robert Hancock <hancock@...systems.ca>, netdev@...r.kernel.org
Cc: woojung.huh@...rochip.com, UNGLinuxDriver@...rochip.com,
andrew@...n.ch, vivien.didelot@...il.com
Subject: Re: [PATCH net] net: dsa: microchip: Don't try to read stats for
unused ports
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: 7c6ff470aa867f53 ("net: dsa: microchip: add MIB counter reading
> support")
> Signed-off-by: Robert Hancock <hancock@...systems.ca>
Reviewed-by: Florian Fainelli <f.fainelli@...il.com>
--
Florian
Powered by blists - more mailing lists