]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PCI: endpoint: pci-epf-vntb: Fix call pci_epc_mem_free_addr() in error path
authorFrank Li <frank.li@nxp.com>
Wed, 2 Nov 2022 14:10:10 +0000 (10:10 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:26:20 +0000 (13:26 +0100)
commit4fdd11312e922e7b06e2fc523c3902ce5f816ae0
tree76d4e212cc6f46e44eced617c77514164cf10fba
parent80d9845244182ad6b2002cfb79e539ae57b72118
PCI: endpoint: pci-epf-vntb: Fix call pci_epc_mem_free_addr() in error path

[ Upstream commit 0c031262d2ddfb938f9668d620d7ed674771646c ]

Replace pci_epc_mem_free_addr() with pci_epf_free_space() in the
error handle path to match pci_epf_alloc_space().

Link: https://lore.kernel.org/r/20221102141014.1025893-4-Frank.Li@nxp.com
Fixes: e35f56bb0330 ("PCI: endpoint: Support NTB transfer between RC and EP")
Signed-off-by: Frank Li <frank.li@nxp.com>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/endpoint/functions/pci-epf-vntb.c