mbuf: fix dump of dynamic fields and flags
authorAlexander Bechikov <asb.tyum@gmail.com>
Wed, 24 Nov 2021 12:57:04 +0000 (13:57 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 24 Nov 2021 14:11:21 +0000 (15:11 +0100)
commitc0b48da45c151987f660b897c247132dac81021f
treecaa8cac60e35e540814951c801e6faa219fca00d
parenta1b2558cdb6aff0c459c9cb11b382840b66d1d2b
mbuf: fix dump of dynamic fields and flags

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