diff options
| author | Douglas Miller <dougmill@linux.vnet.ibm.com> | 2016-03-04 15:36:56 -0600 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-10 10:26:14 +0200 |
| commit | c3589ff46ea17494273753022e9482548177ffa2 (patch) | |
| tree | 63176df67462926bdbb4f0dba0badc4753cd0020 /include/linux/stringify.h | |
| parent | 88b8fdff2e7c74862b19a10bd9e0ba8ed97f5105 (diff) | |
be2net: Don't leak iomapped memory on removal.
commit a69bf3c5b49ef488970c74e26ba0ec12f08491c2 upstream.
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: 25848c901 ("use PCI MMIO read instead of config read for errors")
Signed-off-by: Douglas Miller <dougmill@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/stringify.h')
0 files changed, 0 insertions, 0 deletions
