vfio: fix resource leak
authorDaniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Mon, 11 Apr 2016 09:46:54 +0000 (11:46 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 11 Apr 2016 12:35:20 +0000 (14:35 +0200)
commitfe671356ed0d9b349bd257b8fcb30adf7da103e1
tree4b89170a4d08f55d2a26aeb32a07af193e53f8e1
parente5140f5266c00397cc85a865c774e4962691561f
vfio: fix resource leak

Coverity ID 13289: Resource leak:
The system resource will not be reclaimed and reused,
reducing the future availability of the resource.
In pci_vfio_get_group_fd: Leak of memory or pointers to system resources

Fixes: ff0b67d1c868 ("vfio: DMA mapping")

Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/linuxapp/eal/eal_pci_vfio.c