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
00-INDEX -rw-r--r-- 1.5 KB
CREDITS -rw-r--r-- 1.9 KB
HiSax.cert -rw-r--r-- 3.9 KB
INTERFACE -rw-r--r-- 27.2 KB
INTERFACE.CAPI -rw-r--r-- 14.1 KB
INTERFACE.fax -rw-r--r-- 4.5 KB
README -rw-r--r-- 28.6 KB
README.FAQ -rw-r--r-- 721 bytes
README.HiSax -rw-r--r-- 23.3 KB
README.act2000 -rw-r--r-- 3.5 KB
README.audio -rw-r--r-- 5.8 KB
README.avmb1 -rw-r--r-- 5.5 KB
README.concap -rw-r--r-- 10.5 KB
README.diversion -rw-r--r-- 6.1 KB
README.fax -rw-r--r-- 1.1 KB
README.gigaset -rw-r--r-- 17.5 KB
README.hfc-pci -rw-r--r-- 1.8 KB
README.hysdn -rw-r--r-- 7.8 KB
README.icn -rw-r--r-- 5.0 KB
README.mISDN -rw-r--r-- 328 bytes
README.pcbit -rw-r--r-- 1.6 KB
README.sc -rw-r--r-- 11.9 KB
README.syncppp -rw-r--r-- 2.1 KB
README.x25 -rw-r--r-- 7.1 KB
syncPPP.FAQ -rw-r--r-- 7.9 KB

README

back to top