linux/drivers/platform/x86/intel
Daniel Scally 0b243c003e platform/x86: intel_skl_int3472: Correct null check
The int3472-discrete driver can enter an error path after initialising
int3472->clock.ena_gpio, but before it has registered the clock. This will
cause a NULL pointer dereference, because clkdev_drop() is not null aware.
Instead of guarding the call to skl_int3472_unregister_clock() by checking
for .ena_gpio, check specifically for the presence of the clk_lookup, which
will guarantee clkdev_create() has already been called.

Bug: https://bugzilla.kernel.org/show_bug.cgi?id=214453
Fixes: 7540599a5e ("platform/x86: intel_skl_int3472: Provide skl_int3472_unregister_clock()")
Signed-off-by: Daniel Scally <djrscally@gmail.com>
Link: https://lore.kernel.org/r/20211008224608.415949-1-djrscally@gmail.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2021-10-11 15:52:58 +02:00
..
atomisp2 platform/x86: intel_atomisp2: Move to intel sub-directory 2021-08-20 20:11:23 +02:00
int33fe platform/x86: intel_cht_int33fe: Use the new i2c_acpi_client_count() helper 2021-08-12 17:26:37 +02:00
int1092 platform/x86: BIOS SAR driver for Intel M.2 Modem 2021-08-20 12:09:41 +02:00
int3472 platform/x86: intel_skl_int3472: Correct null check 2021-10-11 15:52:58 +02:00
pmc platform/x86/intel: pmc/core: Add GBE Package C10 fix for Alder Lake PCH 2021-08-20 20:33:35 +02:00
pmt platform/x86: intel_pmt_telemetry: Ignore zero sized entries 2021-08-20 12:09:41 +02:00
speed_select_if platform/x86: ISST: use semi-colons instead of commas 2021-08-26 15:18:07 +02:00
telemetry platform/x86: intel_telemetry: Move to intel sub-directory 2021-08-20 20:08:09 +02:00
wmi platform/x86: intel-wmi-thunderbolt: Move to intel sub-directory 2021-08-20 20:11:23 +02:00
bxtwc_tmu.c platform/x86: intel_bxtwc_tmu: Move to intel sub-directory 2021-08-20 20:00:02 +02:00
chtdc_ti_pwrbtn.c platform/x86: intel_chtdc_ti_pwrbtn: Move to intel sub-directory 2021-08-20 20:00:02 +02:00
hid.c platform/x86/intel: hid: Add DMI switches allow list 2021-09-21 15:05:08 +02:00
int0002_vgpio.c platform/x86: intel_int0002_vgpio: Move to intel sub-directory 2021-08-20 20:11:23 +02:00
ishtp_eclite.c platform/x86: Add Intel ishtp eclite driver 2021-09-16 15:25:44 +02:00
Kconfig platform/x86: Add Intel ishtp eclite driver 2021-09-16 15:25:44 +02:00
Makefile platform/x86: Add Intel ishtp eclite driver 2021-09-16 15:25:44 +02:00
mrfld_pwrbtn.c platform/x86: intel_mrfld_pwrbtn: Move to intel sub-directory 2021-08-20 20:00:02 +02:00
oaktrail.c platform/x86: intel_oaktrail: Move to intel sub-directory 2021-08-20 20:11:23 +02:00
punit_ipc.c platform/x86/intel: punit_ipc: Drop wrong use of ACPI_PTR() 2021-09-13 10:36:52 +02:00
rst.c platform/x86: intel-rst: Move to intel sub-directory 2021-08-20 20:09:43 +02:00
smartconnect.c platform/x86: intel-smartconnect: Move to intel sub-directory 2021-08-20 20:11:12 +02:00
turbo_max_3.c platform/x86: intel_turbo_max_3: Move to intel sub-directory 2021-08-20 20:11:22 +02:00
uncore-frequency.c platform/x86: intel-uncore-frequency: Move to intel sub-directory 2021-08-20 20:11:22 +02:00
vbtn.c platform/x86: intel-vbtn: Move to intel sub-directory 2021-08-20 20:11:23 +02:00