Files
kernel_google_wahoo/drivers
Douglas Miller c3589ff46e 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>
2020-05-10 10:26:14 +02:00
..
2020-01-04 13:34:16 +01:00
2018-12-21 14:09:52 +01:00
2018-11-21 09:27:36 +01:00
2018-10-10 08:52:04 +02:00
2019-06-11 12:23:55 +02:00