Files
linux/drivers/acpi
Wenwen Wang 9118efffc1 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:30:26 +02:00
..
2015-07-08 02:27:32 +02:00
2016-04-27 23:42:57 +02:00
2016-11-11 23:23:02 +01:00
2015-07-08 02:27:32 +02:00
2019-05-14 19:19:34 +02:00
2016-01-04 22:10:30 +01:00
2015-07-08 02:27:32 +02:00
2015-07-08 02:27:32 +02:00
2018-04-13 19:48:10 +02:00
2016-10-10 02:20:43 +02:00
2015-07-08 02:27:32 +02:00
2016-07-19 12:32:39 -07:00