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
CREDITS -rw-r--r-- 7.2 KB
URB.txt -rw-r--r-- 10.3 KB
WUSB-Design-overview.txt -rw-r--r-- 17.5 KB
acm.txt -rw-r--r-- 4.9 KB
anchors.txt -rw-r--r-- 2.6 KB
authorization.txt -rw-r--r-- 3.6 KB
bulk-streams.txt -rw-r--r-- 3.2 KB
callbacks.txt -rw-r--r-- 4.9 KB
chipidea.txt -rw-r--r-- 3.1 KB
dma.txt -rw-r--r-- 5.8 KB
dwc3.txt -rw-r--r-- 1.8 KB
ehci.txt -rw-r--r-- 9.7 KB
error-codes.txt -rw-r--r-- 6.4 KB
functionfs.txt -rw-r--r-- 3.0 KB
gadget-testing.txt -rw-r--r-- 22.0 KB
gadget_configfs.txt -rw-r--r-- 10.2 KB
gadget_hid.txt -rw-r--r-- 11.4 KB
gadget_multi.txt -rw-r--r-- 5.4 KB
gadget_printer.txt -rw-r--r-- 10.7 KB
gadget_serial.txt -rw-r--r-- 11.4 KB
hotplug.txt -rw-r--r-- 6.2 KB
iuu_phoenix.txt -rw-r--r-- 2.7 KB
linux-cdc-acm.inf -rw-r--r-- 3.3 KB
linux.inf -rw-r--r-- 2.2 KB
mass-storage.txt -rw-r--r-- 9.5 KB
misc_usbsevseg.txt -rw-r--r-- 1.5 KB
mtouchusb.txt -rw-r--r-- 2.7 KB
ohci.txt -rw-r--r-- 1.5 KB
persist.txt -rw-r--r-- 7.5 KB
power-management.txt -rw-r--r-- 33.7 KB
proc_usb_info.txt -rw-r--r-- 15.4 KB
rio.txt -rw-r--r-- 4.3 KB
usb-help.txt -rw-r--r-- 495 bytes
usb-serial.txt -rw-r--r-- 19.2 KB
usbmon.txt -rw-r--r-- 14.4 KB
wusb-cbaf -rw-r--r-- 3.2 KB

back to top