]> git.ipfire.org Git - people/arne_f/kernel.git/commit
PCI: dwc: Free MSI in dw_pcie_host_init() error path
authorJisheng Zhang <Jisheng.Zhang@synaptics.com>
Fri, 29 Mar 2019 11:57:54 +0000 (11:57 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Jun 2019 09:54:05 +0000 (11:54 +0200)
commita6b79e2c7c02d63c58f30979b6032d7367594693
tree3aa5f616e6711dc80ac6ca5a17764092121c1627
parenta4aa028267019df11696077507994510a0d84726
PCI: dwc: Free MSI in dw_pcie_host_init() error path

[ Upstream commit 9e2b5de5604a6ff2626c51e77014d92c9299722c ]

If we ever did MSI-related initializations, we need to call
dw_pcie_free_msi() in the error code path.

Remove the IS_ENABLED(CONFIG_PCI_MSI) check for MSI init because
pci_msi_enabled() already has a stub for !CONFIG_PCI_MSI.

Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/controller/dwc/pcie-designware-host.c