linux-stable/drivers/platform
Jean Delvare d2f33f0c3a platform/x86: thinkpad_acpi: Fix a memory leak of EFCH MMIO resource
Unlike release_mem_region(), a call to release_resource() does not
free the resource, so it has to be freed explicitly to avoid a memory
leak.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Fixes: 455cd867b8 ("platform/x86: thinkpad_acpi: Add a s2idle resume quirk for a number of laptops")
Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Mark Gross <markgross@kernel.org>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20220621155511.5b266395@endymion.delvare
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2022-06-27 09:38:56 +02:00
..
chrome platform/chrome: cros_ec_spi: drop BUG_ON() if din isn't large enough 2022-05-16 10:01:52 +08:00
goldfish platform: goldfish: pipe: Use platform_get_irq() to get the interrupt 2022-03-18 13:55:21 +01:00
mellanox platform/mellanox: nvsw-sn2201: fix error code in nvsw_sn2201_create_static_devices() 2022-06-27 09:38:56 +02:00
mips MIPS: Loongson: Use hwmon_device_register_with_groups() to register hwmon 2022-05-12 17:58:05 +02:00
olpc spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
surface platform/surface: aggregator: Fix initialization order when compiling as builtin module 2022-05-06 13:02:46 +02:00
x86 platform/x86: thinkpad_acpi: Fix a memory leak of EFCH MMIO resource 2022-06-27 09:38:56 +02:00
Kconfig
Makefile