]> git.baikalelectronics.ru Git - kernel.git/commit
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:26:44 +0000 (12:26 +0200)
commitee67c70275804e1ba7dd205cb8cd7ac6fa7f35f1
tree4a53792d06e117aa4cd9eed535a3f94768e0b1ec
parente2bddd2502c3b05bcf8aa2cee9027a31cdc77942
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