Re: [net PATCH] net: dsa: qca8k: fix NULL pointer dereference for of_device_get_match_data

From: Vladimir Oltean
Date: Mon Sep 05 2022 - 12:50:53 EST


On Sun, Sep 04, 2022 at 11:53:19PM +0200, Christian Marangi wrote:
> of_device_get_match_data is called on priv->dev before priv->dev is
> actually set. Move of_device_get_match_data after priv->dev is correctly
> set to fix this kernel panic.
>
> Fixes: 3bb0844e7bcd ("net: dsa: qca8k: cache match data to speed up access")
> Signed-off-by: Christian Marangi <ansuelsmth@xxxxxxxxx>
> ---

Did this ever work? Was it tested when you sent the big refactoring
patch set?