mirror-linux/include/linux/platform_data/x86
Qiu Wenbo f0f7a3f542
platform/x86: int3472: Fix double free of GPIO device during unregister
regulator_unregister() already frees the associated GPIO device. On
ThinkPad X9 (Lunar Lake), this causes a double free issue that leads to
random failures when other drivers (typically Intel THC) attempt to
allocate interrupts. The root cause is that the reference count of the
pinctrl_intel_platform module unexpectedly drops to zero when this
driver defers its probe.

This behavior can also be reproduced by unloading the module directly.

Fix the issue by removing the redundant release of the GPIO device
during regulator unregistration.

Cc: stable@vger.kernel.org
Fixes: 1e5d088a52 ("platform/x86: int3472: Stop using devm_gpiod_get()")
Signed-off-by: Qiu Wenbo <qiuwenbo@kylinsec.com.cn>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Hans de Goede <hansg@kernel.org>
Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Link: https://patch.msgid.link/20251028063009.289414-1-qiuwenbo@gnome.org
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
2025-10-28 17:06:14 +02:00
..
amd-fch.h Move FCH header to a location accessible by all archs 2025-06-30 13:42:11 +03:00
apple.h
asus-wmi.h platform/x86: asus-wmi: Refactor Ally suspend/resume 2025-05-08 16:03:56 +03:00
clk-lpss.h
clk-pmc-atom.h
int3472.h platform/x86: int3472: Fix double free of GPIO device during unregister 2025-10-28 17:06:14 +02:00
intel-mid_wdt.h
intel_pmc_ipc.h platform/x86: intel_pmc_ipc: add option to build without ACPI 2025-04-07 14:50:43 +03:00
intel_scu_ipc.h platform/x86: intel_scu_ipc: Don't use "proxy" headers 2024-10-07 12:27:15 +03:00
nvidia-wmi-ec-backlight.h
p2sb.h
pmc_atom.h
pwm-lpss.h pwm: lpss: Clarify the bypass member semantics in struct pwm_lpss_boardinfo 2025-02-11 16:25:41 +02:00
simatic-ipc-base.h
simatic-ipc.h
soc.h
spi-intel.h