[PATCH] net/sfc: fix null dereference in syslog

Ferruh Yigit ferruh.yigit at amd.com
Mon Nov 6 12:37:56 CET 2023


On 11/4/2023 7:37 AM, Weiguo Li wrote:
> When ctx->sa is null, sfc_err(ctx->sa, ...) will triger a null
> dereference in the macro of sfc_err. Use SFC_GENERIC_LOG(ERR, ...)
> to avoid that.
> 
> Fixes: 44db08d53be3 ("net/sfc: maintain controller to EFX interface mapping")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Weiguo Li <liweiguo at xencore.cn>
>

Reviewed-by: Ferruh Yigit <ferruh.yigit at amd.com>

Applied to dpdk-next-net/main, thanks.


More information about the stable mailing list