[PATCH 01/23] net/nfp: fix dereference of null pointer
Ferruh Yigit
ferruh.yigit at amd.com
Sun Jul 7 20:56:23 CEST 2024
On 6/19/2024 10:58 AM, Chaoyong He wrote:
> From: Peng Zhang <peng.zhang at corigine.com>
>
> The original logic can call the uninitialized parameter 'process_private'
> to get 'struct nfp_net_hw_priv', so the null pointer will cause a segment
> fault problem.
>
> This commit will add the "struct nfp_repr_init" as the parameter,
> it includes "struct nfp_net_hw_priv", it can fix this bug.
>
> Fixes: 149850c5b8ec ("net/nfp: support xstats for flower firmware")
> Cc: chaoyong.he at corigine.com
> Cc: stable at dpdk.org
>
> Signed-off-by: Peng Zhang <peng.zhang at corigine.com>
>
Hi Chaoyong,
As maintainer of the driver, I expect your review on the patch, and
since whole series has it but not this one, I assume it is just missed,
I am adding and explicit review tag to the patch:
Reviewed-by: Chaoyong He <chaoyong.he at corigine.com>
If this was not the intention or you are not agree with the patch,
please let me know and I can drop the patch from next-net.
Also fixes tag is wrong, it should be:
Fixes: 82a2c286f35a ("net/nfp: support xstats for flower firmware")
More information about the dev
mailing list