summaryrefslogtreecommitdiff
path: root/drivers/pci/pci.c
diff options
context:
space:
mode:
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>2021-01-25 02:28:26 +0300
committerBjorn Helgaas <bhelgaas@google.com>2021-03-23 18:18:49 +0300
commitc99e755a4a4c165cad6effb39faffd0f3377c02d (patch)
tree3006b4178fe6ca3bc7b5859cb9472e74f41438b5 /drivers/pci/pci.c
parenta38fd8748464831584a19438cbb3082b5a2dab15 (diff)
downloadlinux-c99e755a4a4c165cad6effb39faffd0f3377c02d.tar.xz
PCI: Release OF node in pci_scan_device()'s error path
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: 98d9f30c820d ("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>
Diffstat (limited to 'drivers/pci/pci.c')
0 files changed, 0 insertions, 0 deletions