git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
305ca2c
)
net/octeontx_ep: fix null pointer access
author
Thierry Herbelot
<thierry.herbelot@6wind.com>
Mon, 24 May 2021 08:59:35 +0000
(10:59 +0200)
committer
Jerin Jacob
<jerinj@marvell.com>
Wed, 30 Jun 2021 03:34:41 +0000
(
05:34
+0200)
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 <thierry.herbelot@6wind.com>
drivers/net/octeontx_ep/otx_ep_rxtx.c
patch
|
blob
|
history
diff --git
a/drivers/net/octeontx_ep/otx_ep_rxtx.c
b/drivers/net/octeontx_ep/otx_ep_rxtx.c
index
28ff74d
..
a7d4335
100644
(file)
--- 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;
}