From: Thierry Herbelot Date: Mon, 24 May 2021 08:59:35 +0000 (+0200) Subject: net/octeontx_ep: fix null pointer access X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=928a0263559647b2d7829bad2a47fdcd6b5014bd;p=dpdk.git 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 --- 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; }