summaryrefslogtreecommitdiff
path: root/drivers/pci/hotplug/pciehp_hpc.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2025-03-01 19:42:54 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-04-10 14:41:38 +0200
commita76cc8a49efd5764bca4634566b3795fe57ff844 (patch)
treed0f4bb4c080432e5c2c2fea51e12553facbd927f /drivers/pci/hotplug/pciehp_hpc.c
parent9e3297a43ab4830750a4bd8d29452b13654f2bfd (diff)
downloadlinux-a76cc8a49efd5764bca4634566b3795fe57ff844.tar.gz
linux-a76cc8a49efd5764bca4634566b3795fe57ff844.tar.bz2
linux-a76cc8a49efd5764bca4634566b3795fe57ff844.zip
PCI: histb: Fix an error handling path in histb_pcie_probe()
[ Upstream commit b36fb50701619efca5f5450b355d42575cf532ed ] If an error occurs after a successful phy_init() call, then phy_exit() should be called. Add the missing call, as already done in the remove function. Fixes: bbd11bddb398 ("PCI: hisi: Add HiSilicon STB SoC PCIe controller driver") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> [kwilczynski: remove unnecessary hipcie->phy NULL check from histb_pcie_probe() and squash a patch that removes similar NULL check for hipcie-phy from histb_pcie_remove() from https://lore.kernel.org/linux-pci/c369b5d25e17a44984ae5a889ccc28a59a0737f7.1742058005.git.christophe.jaillet@wanadoo.fr] Signed-off-by: Krzysztof WilczyƄski <kwilczynski@kernel.org> Link: https://lore.kernel.org/r/8301fc15cdea5d2dac21f57613e8e6922fb1ad95.1740854531.git.christophe.jaillet@wanadoo.fr Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/pci/hotplug/pciehp_hpc.c')
0 files changed, 0 insertions, 0 deletions