fbarray: fix destruction
authorAnatoly Burakov <anatoly.burakov@intel.com>
Tue, 9 Jul 2019 14:00:27 +0000 (15:00 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 10 Jul 2019 21:27:46 +0000 (23:27 +0200)
commitf3330a26506ce45fe1b3423c611382c495c0b105
tree07e36bea83b365ae88c6405de5579ca58fe1c685
parent89aac60e0be9ed95a87b16e3595f102f9faaffb4
fbarray: fix destruction

Currently, when fbarray is destroyed, the fbarray structure is not
zeroed out, which leads to stale data being there and confusing
secondary process init in legacy mem mode. Fix it by always
memsetting the fbarray to zero when destroying it.

Fixes: 5b61c62cfd76 ("fbarray: add internal tailq for mapped areas")
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/common/eal_common_fbarray.c