PCI: ibmphp: Fix double unmap of io_mem
authorVishal Aslot <os.vaslot@gmail.com>
Wed, 18 Aug 2021 16:57:51 +0000 (11:57 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Sep 2021 10:28:01 +0000 (12:28 +0200)
commit70ac967a7b886329f7308b966a690f9d4a94f958
tree10b06216e524abc2e221bce9044ab5788a0fe109
parent9ae759a36b6145df9c3cca198f8fcb198044ab34
PCI: ibmphp: Fix double unmap of io_mem

[ Upstream commit faa2e05ad0dccf37f995bcfbb8d1980d66c02c11 ]

ebda_rsrc_controller() calls iounmap(io_mem) on the error path. Its caller,
ibmphp_access_ebda(), also calls iounmap(io_mem) on good and error paths.

Remove the iounmap(io_mem) invocation from ebda_rsrc_controller().

[bhelgaas: remove item from TODO]
Link: https://lore.kernel.org/r/20210818165751.591185-1-os.vaslot@gmail.com
Signed-off-by: Vishal Aslot <os.vaslot@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/hotplug/TODO
drivers/pci/hotplug/ibmphp_ebda.c