net/octeontx_ep: do not use a NULL Pointer
PATCH 1/1 net/octeontx_ep: do not use a NULL Pointer
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 Nalla Pradeep <[email protected]>
Cc Radha Mohan Chintakuntla <[email protected]>
Cc Veerasenareddy Burru <[email protected]>
Signed-off-by Thierry Herbelot <[email protected]>
--- drivers/net/octeontx_ep/otx_ep_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/octeontx_ep/otx_ep_rxtx.c +1 -1
@@ -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 ; }
Signature · 1 line
2.29.2
Quoted 10 lines · Thierry Herbelot
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 Nalla Pradeep <[email protected]>Cc Radha Mohan Chintakuntla <[email protected]>Cc Veerasenareddy Burru <[email protected]>Signed-off-by Thierry Herbelot <[email protected]>
Changed the git log to following and Applied to
dpdk-next-net-mrvl/for-next-net. Thanks
Author: Thierry Herbelot <[email protected]> Date: Mon May 24 10:59:35 2021 +0200
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")
Signed-off-by Thierry Herbelot <[email protected]>
Quoted 20 lines
--- drivers/net/octeontx_ep/otx_ep_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/octeontx_ep/otx_ep_rxtx.c +1
-2@@ -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