linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] fix memleak when using pci_iounmap()
@ 2020-08-28  6:34 Yang Yingliang
  2020-08-28  6:34 ` [PATCH 1/2] iomap: move some definitions to include/linux/io.h Yang Yingliang
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Yang Yingliang @ 2020-08-28  6:34 UTC (permalink / raw)
  To: linux-kernel, linux-pci; +Cc: bhelgaas, guohanjun, yangyingliang

config GENERIC_IOMAP is not selected on some arch, pci_iounmap()
don't implement, when we using pci_iomap/pci_iounmap, it will
lead to memory leak.
This patch set moves the implemention of pci_iounmap() to
lib/pci_iomap.c to fix this.

Yang Yingliang (2):
  iomap: move some definitions to include/linux/io.h
  pci: fix memleak when calling pci_iomap/unmap()

 include/asm-generic/pci_iomap.h |  2 ++
 include/linux/io.h              | 36 ++++++++++++++++++++++++++
 lib/iomap.c                     | 46 ---------------------------------
 lib/pci_iomap.c                 |  8 ++++++
 4 files changed, 46 insertions(+), 46 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2020-08-28 16:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-28  6:34 [PATCH 0/2] fix memleak when using pci_iounmap() Yang Yingliang
2020-08-28  6:34 ` [PATCH 1/2] iomap: move some definitions to include/linux/io.h Yang Yingliang
2020-08-28  6:34 ` [PATCH 2/2] pci: fix memleak when calling pci_iomap/unmap() Yang Yingliang
2020-08-28 10:19   ` kernel test robot
2020-08-28 11:24   ` kernel test robot
2020-08-28 13:35   ` kernel test robot
2020-08-28 16:06 ` [PATCH 0/2] fix memleak when using pci_iounmap() Bjorn Helgaas

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).