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
Atmel
Marvell
OMAP
SA1100
SH-Mobile
SPEAr
Samsung
Samsung-S3C24XX
VFP
keystone
nwfpe
pxa
sti
stm32
sunxi
00-INDEX -rw-r--r-- 1.4 KB
Booting -rw-r--r-- 7.9 KB
CCN.txt -rw-r--r-- 2.3 KB
IXP4xx -rw-r--r-- 6.3 KB
Interrupts -rw-r--r-- 6.6 KB
Netwinder -rw-r--r-- 1.5 KB
Porting -rw-r--r-- 4.4 KB
README -rw-r--r-- 7.6 KB
Setup -rw-r--r-- 3.5 KB
cluster-pm-race-avoidance.txt -rw-r--r-- 16.2 KB
firmware.txt -rw-r--r-- 2.2 KB
kernel_mode_neon.txt -rw-r--r-- 5.6 KB
kernel_user_helpers.txt -rw-r--r-- 6.6 KB
mem_alignment -rw-r--r-- 2.4 KB
memory.txt -rw-r--r-- 3.1 KB
swp_emulation -rw-r--r-- 1.2 KB
tcm.txt -rw-r--r-- 5.0 KB
uefi.txt -rw-r--r-- 2.9 KB
vlocks.txt -rw-r--r-- 6.6 KB

README

back to top