vfio: fix read of freed memory on getting container fd
authorDarek Stojaczyk <dariusz.stojaczyk@intel.com>
Thu, 25 Oct 2018 10:49:10 +0000 (12:49 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 29 Oct 2018 00:59:48 +0000 (01:59 +0100)
commit88e2d78a20fae4cccde351e38e0b1ef534ad3302
tree66d2305efb75c45e07298400aa66191b78871bb2
parent4f5519ed8349347f60a2c3a7e9016c5660a47d87
vfio: fix read of freed memory on getting container fd

We were reading some memory just after freeing it.

Fixes: 83a73c5fef66 ("vfio: use generic multi-process channel")
Cc: stable@dpdk.org
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/linuxapp/eal/eal_vfio.c