diff options
| author | Douglas Miller <[email protected]> | 2016-03-04 21:36:56 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2016-03-07 20:18:31 +0000 |
| commit | a69bf3c5b49ef488970c74e26ba0ec12f08491c2 (patch) | |
| tree | 20134dea81d82155f7767c0151cb251fde3c688c /drivers/gpu/drm/omapdrm/omap_gem.c | |
| parent | vmxnet3: avoid calling pskb_may_pull with interrupts disabled (diff) | |
| download | kernel-a69bf3c5b49ef488970c74e26ba0ec12f08491c2.tar.gz kernel-a69bf3c5b49ef488970c74e26ba0ec12f08491c2.zip | |
be2net: Don't leak iomapped memory on removal.
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_gem.c')
0 files changed, 0 insertions, 0 deletions
