diff options
author | 2022-06-21 15:55:11 +0200 | |
---|---|---|
committer | 2022-06-27 09:38:56 +0200 | |
commit | d2f33f0c3ad7b0d5262d9b986f1353265fad7a08 (patch) | |
tree | 65b08c40b7064074bc19671eb9df21600d818b9b /net/unix/sysctl_net_unix.c | |
parent | platform/mellanox: nvsw-sn2201: fix error code in nvsw_sn2201_create_static_devices() (diff) | |
download | wireguard-linux-d2f33f0c3ad7b0d5262d9b986f1353265fad7a08.tar.xz wireguard-linux-d2f33f0c3ad7b0d5262d9b986f1353265fad7a08.zip |
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: 455cd867b85b ("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>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions