Files
linux/drivers
Dmitry Baryshkov d0946a6d06 PCI: Release OF node in pci_scan_device()'s error path
[ Upstream commit c99e755a4a ]

In pci_scan_device(), if pci_setup_device() fails for any reason, the code
will not release device's of_node by calling pci_release_of_node().  Fix
that by calling the release function.

Fixes: 98d9f30c82 ("pci/of: Match PCI devices to OF nodes dynamically")
Link: https://lore.kernel.org/r/20210124232826.1879-1-dmitry.baryshkov@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-16 11:04:01 +09:00
..
2023-05-12 16:27:16 +09:00
2023-05-16 11:02:35 +09:00
2023-05-16 11:02:26 +09:00
2023-05-16 11:03:12 +09:00
2023-05-15 12:46:28 +09:00
2023-05-16 10:50:24 +09:00
2023-05-16 09:58:13 +09:00
2023-05-15 10:37:00 +09:00
2023-05-16 11:02:43 +09:00
2023-05-15 09:23:01 +09:00
2023-05-15 08:28:33 +09:00
2023-05-16 10:49:47 +09:00
2023-05-15 16:59:11 +09:00
2023-05-16 10:52:23 +09:00