diff options
| author | Zhe Qiao <[email protected]> | 2025-06-19 07:26:08 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2025-06-23 20:15:45 +0000 |
| commit | 2b8be57fa0c88ac824a906f29c04d728f9f6047a (patch) | |
| tree | 0eb27ceb6c2baa7f1078f67512718d28e5ae8b0a /lib/crypto/mpi/mpi-cmp.c | |
| parent | Linux 6.16-rc3 (diff) | |
| download | kernel-2b8be57fa0c88ac824a906f29c04d728f9f6047a.tar.gz kernel-2b8be57fa0c88ac824a906f29c04d728f9f6047a.zip | |
Revert "PCI/ACPI: Fix allocated memory release on error in pci_acpi_scan_root()"
This reverts commit 631b2af2f357 ("PCI/ACPI: Fix allocated memory release
on error in pci_acpi_scan_root()").
The reverted patch causes the 'ri->cfg' and 'root_ops' resources to be
released multiple times.
When acpi_pci_root_create() fails, these resources have already been
released internally by the __acpi_pci_root_release_info() function.
Releasing them again in pci_acpi_scan_root() leads to incorrect behavior
and potential memory issues.
We plan to resolve the issue using a more appropriate fix.
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Zhe Qiao <[email protected]>
Acked-by: Dan Carpenter <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions
