netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/1] be2net: Don't leak iomapped memory on removal.
@ 2016-03-04 21:36 Douglas Miller
  2016-03-04 21:36 ` [PATCH V2 1/1] " Douglas Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Douglas Miller @ 2016-03-04 21:36 UTC (permalink / raw)
  To: netdev
  Cc: sathya.perla, ajit.khaparde, padmanabh.ratnakar,
	sriharsha.basavapatna, somnath.kotur

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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-03-07 20:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-04 21:36 [PATCH V2 0/1] be2net: Don't leak iomapped memory on removal Douglas Miller
2016-03-04 21:36 ` [PATCH V2 1/1] " Douglas Miller
2016-03-07 20:38   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).