[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200828063403.3995421-1-yangyingliang@huawei.com>
Date: Fri, 28 Aug 2020 14:34:01 +0800
From: Yang Yingliang <yangyingliang@...wei.com>
To: <linux-kernel@...r.kernel.org>, <linux-pci@...r.kernel.org>
CC: <bhelgaas@...gle.com>, <guohanjun@...wei.com>,
<yangyingliang@...wei.com>
Subject: [PATCH 0/2] fix memleak when using pci_iounmap()
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
Powered by blists - more mailing lists