Commit 631b2af
PCI/ACPI: Fix allocated memory release on error in pci_acpi_scan_root()
In the pci_acpi_scan_root() function, when creating a PCI bus fails,
we need to free up the previously allocated memory, which can avoid
invalid memory usage and save resources.
Fixes: 789befd ("arm64: PCI: Migrate ACPI related functions to pci-acpi.c")
Signed-off-by: Zhe Qiao <[email protected]>
[kwilczynski: commit log]
Signed-off-by: Krzysztof Wilczyński <[email protected]>
Acked-by: Rafael J. Wysocki <[email protected]>
Link: https://lore.kernel.org/r/[email protected]1 parent 0af2f6b commit 631b2af
1 file changed
+13
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1676 | 1676 | | |
1677 | 1677 | | |
1678 | 1678 | | |
1679 | | - | |
1680 | | - | |
1681 | | - | |
1682 | | - | |
| 1679 | + | |
| 1680 | + | |
1683 | 1681 | | |
1684 | 1682 | | |
1685 | | - | |
1686 | | - | |
1687 | | - | |
1688 | | - | |
1689 | | - | |
| 1683 | + | |
| 1684 | + | |
1690 | 1685 | | |
1691 | 1686 | | |
1692 | 1687 | | |
1693 | 1688 | | |
1694 | 1689 | | |
1695 | 1690 | | |
1696 | | - | |
| 1691 | + | |
1697 | 1692 | | |
1698 | 1693 | | |
1699 | 1694 | | |
| |||
1710 | 1705 | | |
1711 | 1706 | | |
1712 | 1707 | | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
1713 | 1716 | | |
1714 | 1717 | | |
1715 | 1718 | | |
| |||
0 commit comments