vlib: Fix pci io bar read/write fd leak 01/15501/2
authorMohsin Kazmi <sykazmi@cisco.com>
Wed, 24 Oct 2018 12:05:34 +0000 (14:05 +0200)
committerDamjan Marion <dmarion@me.com>
Wed, 24 Oct 2018 15:21:57 +0000 (15:21 +0000)
commit3d3b9550dbee81d3cca85c593015edf2ac3191c2
tree8166025a1a904ccae62872183f659fc30121087e
parent71615399e194847d7833b744caedab9b841733e5
vlib: Fix pci io bar read/write fd leak

Few devices provide PCI bar region(s) through I/O.
If any such device driver opens I/O "fd" to read and write,
needs to close it, when pci device is going to be deleted.

Change-Id: Iba104e56f76c6bf9ccd27bf2223bad39b1301763
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
src/vlib/linux/pci.c