https://github.com/torvalds/linux
Revision a69bf3c5b49ef488970c74e26ba0ec12f08491c2 authored by Douglas Miller on 04 March 2016, 21:36:56 UTC, committed by David S. Miller on 07 March 2016, 20:18:31 UTC
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>
1 parent cec0556
History
Tip revision: a69bf3c5b49ef488970c74e26ba0ec12f08491c2 authored by Douglas Miller on 04 March 2016, 21:36:56 UTC
be2net: Don't leak iomapped memory on removal.
Tip revision: a69bf3c
File Mode Size
cache-policies.txt -rw-r--r-- 6.6 KB
cache.txt -rw-r--r-- 12.5 KB
delay.txt -rw-r--r-- 728 bytes
dm-crypt.txt -rw-r--r-- 3.4 KB
dm-flakey.txt -rw-r--r-- 1.9 KB
dm-io.txt -rw-r--r-- 3.2 KB
dm-log.txt -rw-r--r-- 2.3 KB
dm-queue-length.txt -rw-r--r-- 1.2 KB
dm-raid.txt -rw-r--r-- 11.1 KB
dm-service-time.txt -rw-r--r-- 3.2 KB
dm-uevent.txt -rw-r--r-- 2.6 KB
era.txt -rw-r--r-- 3.1 KB
kcopyd.txt -rw-r--r-- 1.9 KB
linear.txt -rw-r--r-- 1.4 KB
log-writes.txt -rw-r--r-- 4.7 KB
persistent-data.txt -rw-r--r-- 2.9 KB
snapshot.txt -rw-r--r-- 6.7 KB
statistics.txt -rw-r--r-- 7.5 KB
striped.txt -rw-r--r-- 1.8 KB
switch.txt -rw-r--r-- 5.4 KB
thin-provisioning.txt -rw-r--r-- 14.3 KB
verity.txt -rw-r--r-- 7.9 KB
zero.txt -rw-r--r-- 1.6 KB

back to top