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:
a1b2558
)
mbuf: fix dump of dynamic fields and flags
author
Alexander Bechikov
<asb.tyum@gmail.com>
Wed, 24 Nov 2021 12:57:04 +0000
(13:57 +0100)
committer
Thomas Monjalon
<thomas@monjalon.net>
Wed, 24 Nov 2021 14:11:21 +0000
(15:11 +0100)
The dump of dynamic fields and flags fails if the shm is already
allocated. Add a check to fix the issue.
Fixes:
d4902ed31c63
("mbuf: check shared memory before dumping dynamic space")
Cc: stable@dpdk.org
Signed-off-by: Alexander Bechikov <asb.tyum@gmail.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/mbuf/rte_mbuf_dyn.c
patch
|
blob
|
history
diff --git
a/lib/mbuf/rte_mbuf_dyn.c
b/lib/mbuf/rte_mbuf_dyn.c
index
db8e020
..
4ae7938
100644
(file)
--- a/
lib/mbuf/rte_mbuf_dyn.c
+++ b/
lib/mbuf/rte_mbuf_dyn.c
@@
-531,7
+531,7
@@
void rte_mbuf_dyn_dump(FILE *out)
size_t i;
rte_mcfg_tailq_write_lock();
- if (init_shared_mem() < 0) {
+ if (
shm == NULL &&
init_shared_mem() < 0) {
rte_mcfg_tailq_write_unlock();
return;
}