]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PCI: endpoint: Make *_free_bar() to return error codes on failure
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 1 Feb 2021 19:57:56 +0000 (01:27 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 08:29:38 +0000 (10:29 +0200)
commit81110da8e414e0ca05c531b21232c7469c92f58c
treeee3d626dc22659a18a638700fac86e8dec4edbf3
parenta6443fd10a7106110cb273177b23d616f36bbcda
PCI: endpoint: Make *_free_bar() to return error codes on failure

[ Upstream commit 0e27aeccfa3d1bab7c6a29fb8e6fcedbad7b09a8 ]

Modify pci_epc_get_next_free_bar() and pci_epc_get_first_free_bar() to
return error values if there are no free BARs available.

Link: https://lore.kernel.org/r/20210201195809.7342-5-kishon@ti.com
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/endpoint/functions/pci-epf-test.c
drivers/pci/endpoint/pci-epc-core.c
include/linux/pci-epc.h
include/linux/pci-epf.h