]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 5 Nov 2021 09:19:29 +0000 (10:19 +0100)
commitebec576c0653c7a7c69950bddcb9705e133f1b0d
tree9780ef0e78a7abe012829fb1d8f25ecd77ddd991
parent21880cdf5e06d10656a4eaf78e16ceb89effed91
PCI: ibmphp: Fix double unmap of io_mem

BugLink: https://bugs.launchpad.net/bugs/1948873
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/pci/hotplug/TODO
drivers/pci/hotplug/ibmphp_ebda.c