summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorMa Ke <make24@iscas.ac.cn>2025-02-02 14:23:57 +0800
committerBjorn Helgaas <bhelgaas@google.com>2025-03-10 13:41:48 -0500
commit1f2768b6a3ee77a295106e3a5d68458064923ede (patch)
treee8bee12a26f0fe80fc0afc54c6bdbca9b1e487c4 /tools/perf/scripts/python/stackcollapse.py
parent804443c1f27883926de94c849d91f5b7d7d696e9 (diff)
PCI: Fix reference leak in pci_alloc_child_bus()
If device_register(&child->dev) fails, call put_device() to explicitly release child->dev, per the comment at device_register(). Found by code review. Link: https://lore.kernel.org/r/20250202062357.872971-1-make24@iscas.ac.cn Fixes: 4f535093cf8f ("PCI: Put pci_dev in device tree as early as possible") Signed-off-by: Ma Ke <make24@iscas.ac.cn> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions