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

2023-11-06 Thread Ferruh Yigit
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: sta...@dpdk.org > >

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

2023-11-04 Thread Weiguo Li
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: sta...@dpdk.org Signed-off-by: Weiguo Li --- drivers/net/sfc/sfc_eth