2022-09-14 20:20:57

by Pali Rohár

[permalink] [raw]
Subject: Re: Regression: qca8k_sw_probe crashes (Was: Re: [net-next PATCH v5 01/14] net: dsa: qca8k: cache match data to speed up access)

On Wednesday 14 September 2022 23:08:57 Vladimir Oltean wrote:
> On Wed, Sep 14, 2022 at 10:06:41PM +0200, Pali Rohár wrote:
> > Hello! This commit is causing kernel crash on powerpc P2020 based board
> > with QCA8337N-AL3C switch.
> > So function of_device_get_match_data() takes as its argument NULL
> > pointer as 'priv' structure is at this stage zeroed, and which cause
> > above kernel crash. priv->dev is filled lines below:
>
> Thanks for the report, it was solved in 'net':
> https://patchwork.kernel.org/project/netdevbpf/patch/[email protected]/

Ou, I did not know that there is already fix. Quick look did not found
anything for qca8k_sw_probe. So sorry for the noise.