1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/platform/x86/intel/int3472
Hao Yao fb109fba72 platform/x86: int3472: Avoid crash in unregistering regulator gpio
When int3472 is loaded before GPIO driver, acpi_get_and_request_gpiod()
failed but the returned gpio descriptor is not NULL, it will cause panic
in later gpiod_put(), so set the gpio_desc to NULL in register error
handling to avoid such crash.

Signed-off-by: Hao Yao <hao.yao@intel.com>
Signed-off-by: Bingbu Cao <bingbu.cao@intel.com>
Link: https://lore.kernel.org/r/20230524035135.90315-1-bingbu.cao@intel.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2023-05-30 12:10:22 +02:00
..
clk_and_regulator.c platform/x86: int3472: Avoid crash in unregistering regulator gpio 2023-05-30 12:10:22 +02:00
common.c ACPI: scan: Add acpi_dev_get_next_consumer_dev() 2022-09-24 19:12:32 +02:00
common.h platform/x86: int3472/discrete: Get the polarity from the _DSM entry 2023-02-03 10:22:35 +01:00
discrete.c platform/x86: intel: int3472: discrete: Convert to platform remove callback returning void 2023-03-07 12:20:33 +01:00
Kconfig platform/x86: int3472/discrete: add LEDS_CLASS dependency 2023-02-10 17:08:24 +01:00
led.c platform/x86: int3472/discrete: Create a LED class device for the privacy LED 2023-02-03 10:22:35 +01:00
Makefile platform/x86: int3472/discrete: Create a LED class device for the privacy LED 2023-02-03 10:22:35 +01:00
tps68470.c More ACPI updates for 6.1-rc1 2022-10-10 13:28:06 -07:00
tps68470.h platform/x86: int3472: Support multiple gpio lookups in board data 2022-09-24 19:12:32 +02:00
tps68470_board_data.c platform/x86: int3472: Add GPIOs to Surface Go 3 Board data 2023-03-07 12:08:30 +01:00