The adapter->pcicfg resource is either mapped via pci_iomap() or
derived from adapter->db. During be_remove() this resource was ignored
and so could remain mapped after remove.
Add a flag to track whether adapter->pcicfg was mapped or not, then
use that flag in be_unmap_pci_bars() to unmap if required.
Signed-off-by: Douglas Miller <[email protected]>- [PATCH 0/1] Fix bug where remove of device fails to free al... Douglas Miller
