[dpdk-stable] [PATCH] net/octeontx_ep: do not use a NULL Pointer
Thierry Herbelot
thierry.herbelot at 6wind.com
Mon May 24 10:59:35 CEST 2021
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 at dpdk.org
Cc: Nalla Pradeep <pnalla at marvell.com>
Cc: Radha Mohan Chintakuntla <radhac at marvell.com>
Cc: Veerasenareddy Burru <vburru at marvell.com>
Signed-off-by: Thierry Herbelot <thierry.herbelot at 6wind.com>
---
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 28ff74d2d5b0..a7d433547e36 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.29.2
More information about the stable
mailing list