linux-stable/drivers/acpi
Wenwen Wang b756e0fbcc ACPI / PCI: fix acpi_pci_irq_enable() memory leak
[ Upstream commit 29b49958cf ]

In acpi_pci_irq_enable(), 'entry' is allocated by kzalloc() in
acpi_pci_irq_check_entry() (invoked from acpi_pci_irq_lookup()). However,
it is not deallocated if acpi_pci_irq_valid() returns false, leading to a
memory leak. To fix this issue, free 'entry' before returning 0.

Fixes: e237a55184 ("x86/ACPI/PCI: Recognize that Interrupt Line 255 means "not connected"")
Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-10-05 12:48:00 +02:00
..
acpica ACPICA: Namespace: remove address node from global list after method termination 2019-05-16 19:42:30 +02:00
apei pstore: Convert buf_lock to semaphore 2019-06-11 12:21:48 +02:00
arm64 ACPI/IORT: Fix off-by-one check in iort_dev_find_its_id() 2019-08-16 10:13:54 +02:00
dptf
nfit nfit: acpi_nfit_ctl(): Check out_obj->type in the right place 2019-03-23 14:35:24 +01:00
pmic ACPI / PMIC: xpower: Fix TS-pin current-source handling 2019-01-16 22:07:12 +01:00
x86 x86/cpu: Sanitize FAM6_ATOM naming 2019-05-14 19:18:42 +02:00
ac.c
acpi_amba.c
acpi_apd.c
acpi_cmos_rtc.c
acpi_configfs.c
acpi_dbg.c
acpi_extlog.c
acpi_ipmi.c
acpi_lpat.c
acpi_lpss.c x86/cpu: Sanitize FAM6_ATOM naming 2019-05-14 19:18:42 +02:00
acpi_memhotplug.c
acpi_pad.c ACPI: acpi_pad: Fix memory leak in power saving threads 2018-05-30 07:52:27 +02:00
acpi_platform.c ACPI / platform: Add SMB0001 HID to forbidden_id_list 2018-11-27 16:10:51 +01:00
acpi_pnp.c
acpi_processor.c ACPI / processor: don't print errors for processorIDs == 0xff 2019-10-05 12:47:49 +02:00
acpi_video.c ACPI: video: Add new hw_changes_brightness quirk, set it on PB Easynote MZ35 2019-10-05 12:47:38 +02:00
acpi_watchdog.c ACPI / watchdog: Prefer iTCO_wdt always when WDAT table uses RTC SRAM 2018-11-27 16:10:50 +01:00
battery.c
battery.h
bgrt.c
blacklist.c ACPI: blacklist: fix clang warning for unused DMI table 2019-08-06 19:05:22 +02:00
bus.c ACPI / bus: Do not call _STA on battery devices with unmet dependencies 2018-04-26 11:02:16 +02:00
button.c ACPI / button: make module loadable when booted in non-ACPI mode 2018-05-09 09:51:49 +02:00
cm_sbs.c
container.c
cppc_acpi.c ACPI / CPPC: do not require the _PSD method 2019-10-05 12:47:57 +02:00
custom_method.c ACPI: custom_method: fix memory leaks 2019-10-05 12:47:59 +02:00
debugfs.c
device_pm.c
device_sysfs.c ACPI / device_sysfs: Avoid OF modalias creation for removed device 2019-03-23 14:35:19 +01:00
dock.c
ec.c Revert "ACPI / EC: Remove old CLEAR_ON_RESUME quirk" 2019-04-20 09:15:06 +02:00
ec_sys.c
event.c
evged.c
fan.c
glue.c
hed.c
internal.h
ioapic.c
irq.c
Kconfig
Makefile
numa.c ACPI: NUMA: Use correct type for printing addresses on i386-PAE 2019-02-20 10:20:48 +01:00
nvs.c
osi.c
osl.c acpi: Add helper for deactivating memory region 2018-07-08 15:30:46 +02:00
pci_irq.c ACPI / PCI: fix acpi_pci_irq_enable() memory leak 2019-10-05 12:48:00 +02:00
pci_link.c
pci_mcfg.c
pci_root.c PCI: pciehp: Request control of native hotplug only if supported 2018-08-03 07:50:31 +02:00
pci_slot.c
power.c ACPI: power: Skip duplicate power resource references in _PRx 2019-01-16 22:07:11 +01:00
proc.c
processor_core.c
processor_driver.c
processor_idle.c
processor_pdc.c
processor_perflib.c ACPI: processor_perflib: Do not send _PPC change notification if not ready 2018-04-26 11:02:16 +02:00
processor_thermal.c
processor_throttling.c
property.c ACPI / property: fix handling of data_nodes in acpi_get_next_subnode() 2019-05-31 06:47:17 -07:00
reboot.c
resource.c
sbs.c ACPI / SBS: Fix GPE storm on recent MacBookPro's 2019-04-20 09:15:05 +02:00
sbshc.c
sbshc.h
scan.c ACPI / scan: Initialize status to ACPI_STA_DEFAULT 2018-09-15 09:45:30 +02:00
sleep.c ACPI / PM: save NVS memory for ASUS 1025C laptop 2018-08-22 07:46:10 +02:00
sleep.h
spcr.c ACPI: SPCR: Consider baud rate 0 as preconfigured state 2019-02-12 19:45:59 +01:00
sysfs.c
tables.c
thermal.c
utils.c
video_detect.c
wakeup.c