pci: fix resource release when unmapping
authorTetsuya Mukawa <mukawa@igel.co.jp>
Thu, 16 Jun 2016 02:33:10 +0000 (11:33 +0900)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 20 Jun 2016 08:46:04 +0000 (10:46 +0200)
commit3f0339efc1ffa171ddcea94ed4c5c113635d5545
tree719c75425c65ad620d131a581cc2e9d919832811
parent0463fc37aae9772ac4a8ee0f8b9f2b229f76c783
pci: fix resource release when unmapping

This patch fixes wrong resource release of pci_uio_unmap().
The 'path' member of mapped_pci_resource structure is allocated by
primary process, but currently it will be freed by both primary
and secondary process.
The patch fixes to be freed by only primary process.

Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp>
Acked-by: David Marchand <david.marchand@6wind.com>
lib/librte_eal/common/eal_common_pci_uio.c