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.
Fixes:
|
||
|---|---|---|
| .. | ||
| be.h | ||
| be_cmds.c | ||
| be_cmds.h | ||
| be_ethtool.c | ||
| be_hw.h | ||
| be_main.c | ||
| be_roce.c | ||
| be_roce.h | ||
| Kconfig | ||
| Makefile | ||