pci: unmap resources if probe fails
authorBen Walker <benjamin.walker@intel.com>
Wed, 11 Jan 2017 17:10:10 +0000 (10:10 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 12 Jan 2017 14:47:45 +0000 (15:47 +0100)
commite84ad157b7bc44161de069df4bb34deeda2daf0c
tree9e7a2885e4b2fb7c5d92fddb3c7e3b3d6368364b
parent6de5c0f1302cc9e310a47e3488d7d3f1a4602b64
pci: unmap resources if probe fails

If resources were mapped prior to probe, unmap them
if probe fails.

This does not handle the case where the kernel driver was
forcibly unbound prior to probe.

Signed-off-by: Ben Walker <benjamin.walker@intel.com>
Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
lib/librte_eal/common/eal_common_pci.c