mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
PCI/ACPI: Fix pci_acpi_preserve_config() memory leak
[ Upstream commitfac679df75] pci_acpi_preserve_config() leaks memory by returning early without freeing the ACPI object on success. Fix that by always freeing the obj, which is not needed by the caller. Fixes:9d7d5db8e7("PCI: Move PRESERVE_BOOT_CONFIG _DSM evaluation to pci_register_host_bridge()") Signed-off-by: Nirmoy Das <nirmoyd@nvidia.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Link: https://patch.msgid.link/20250825214642.142135-1-nirmoyd@nvidia.com Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
db05b70c5d
commit
ab6cfdfd8b
1 changed files with 4 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue