eal: fix mapping leak in secondary process
authorArnon Warshavsky <arnon@qwilt.com>
Mon, 19 Aug 2019 13:57:44 +0000 (16:57 +0300)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 15 Oct 2019 18:37:11 +0000 (20:37 +0200)
commit75dbb45f28af31f49617d93e0195daa76df1724c
treec7b546fe30e3c7f7b65a2900f00314b9ca39fcc7
parent773a860aef951727ea0c5af0f83e15fb0e24e03d
eal: fix mapping leak in secondary process

Have rte_eal_config_reattach clean up the mapped address which is a valid
address but not the one intended.

Coverity issue: 343439
Fixes: 4e8854ae89fa ("eal: do not panic on shared memory init")
Fixes: b149a7064261 ("eal/freebsd: add config reattach in secondary process")
Cc: stable@dpdk.org
Signed-off-by: Arnon Warshavsky <arnon@qwilt.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
lib/librte_eal/freebsd/eal/eal.c
lib/librte_eal/linux/eal/eal.c