diff options
author | Philipp Stanner <pstanner@redhat.com> | 2024-01-31 12:00:20 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2024-01-31 23:40:40 +0300 |
commit | 7626913652cc786c238e2dd7d8740b17d41b2637 (patch) | |
tree | e51fc6e76b63a2c22cd7989340a6ec4618b680eb /drivers/pci/slot.c | |
parent | 6613476e225e090cc9aad49be7fa504e290dd33d (diff) | |
download | linux-7626913652cc786c238e2dd7d8740b17d41b2637.tar.xz |
pci_iounmap(): Fix MMIO mapping leak
The #ifdef ARCH_HAS_GENERIC_IOPORT_MAP accidentally also guards iounmap(),
which means MMIO mappings are leaked.
Move the guard so we call iounmap() for MMIO mappings.
Fixes: 316e8d79a095 ("pci_iounmap'2: Electric Boogaloo: try to make sense of it all")
Link: https://lore.kernel.org/r/20240131090023.12331-2-pstanner@redhat.com
Reported-by: Danilo Krummrich <dakr@redhat.com>
Suggested-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Philipp Stanner <pstanner@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Cc: <stable@vger.kernel.org> # v5.15+
Diffstat (limited to 'drivers/pci/slot.c')
0 files changed, 0 insertions, 0 deletions