Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/sfc: remove null dereference in log
[ upstream commit d05ce802f39dd4a67c18f9dbe1a00901429ba191 ] When ctx->sa is null, sfc_err(ctx->sa, ...) will trigger a null dereference in the macro of sfc_err. Use SFC_GENERIC_LOG(ERR, ...) to avoid that. Fixes: 44db08d ("net/sfc: maintain controller to EFX interface mapping") Signed-off-by: Weiguo Li <liweiguo@xencore.cn> Reviewed-by: Ferruh Yigit <ferruh.yigit@amd.com>
- Loading branch information