From 928a0263559647b2d7829bad2a47fdcd6b5014bd Mon Sep 17 00:00:00 2001 From: Thierry Herbelot Date: Mon, 24 May 2021 10:59:35 +0200 Subject: [PATCH] net/octeontx_ep: fix null pointer access mz is known to be NULL. Do not use it to print a memzone name. Fixes: 242e18c056890 ("net/octeontx_ep: add Rx queue setup and release") Cc: stable@dpdk.org Signed-off-by: Thierry Herbelot --- drivers/net/octeontx_ep/otx_ep_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/octeontx_ep/otx_ep_rxtx.c b/drivers/net/octeontx_ep/otx_ep_rxtx.c index 28ff74d2d5..a7d433547e 100644 --- a/drivers/net/octeontx_ep/otx_ep_rxtx.c +++ b/drivers/net/octeontx_ep/otx_ep_rxtx.c @@ -27,7 +27,7 @@ otx_ep_dmazone_free(const struct rte_memzone *mz) int ret = 0; if (mz == NULL) { - otx_ep_err("Memzone %s : NULL\n", mz->name); + otx_ep_err("Memzone: NULL\n"); return; } -- 2.20.1