diff options
author | Lizhi Hou <[email protected]> | 2023-09-29 10:10:17 -0700 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2023-09-29 17:33:51 -0500 |
commit | f69977404700a3d33b1c4b492c2a44f17cb07af5 (patch) | |
tree | 4fbb9ea726173d56c97563b0aeffe0d5e44abffd /lib/test_fortify/write_overflow-strcpy.c | |
parent | 33efa29e825636a06d5711c9dfccf92726d2fc81 (diff) |
PCI: of: Destroy changeset when adding PCI device node fails
Previously of_pci_make_dev_node() leaked a cset if it failed to create a
device node for the PCI device with of_changeset_create_node().
Destroy the cset if of_changeset_create_node() fails.
Fixes: 407d1a51921e ("PCI: Create device tree node for bridge")
Link: https://lore.kernel.org/r/[email protected]
Reported-by: Herve Codina <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Lizhi Hou <[email protected]>
[bhelgaas: commit log]
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Herve Codina <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strcpy.c')
0 files changed, 0 insertions, 0 deletions