summaryrefslogtreecommitdiff
path: root/MAINTAINERS
diff options
context:
space:
mode:
authorDaniel Scally <djrscally@gmail.com>2021-10-09 01:46:08 +0300
committerHans de Goede <hdegoede@redhat.com>2021-10-11 16:54:44 +0300
commitc005828744f584bfcd2cf3ed64dfef15a5078960 (patch)
tree8d018ae8758e75d441029edfb14ce31b73dd37fb /MAINTAINERS
parent0f607d6b227470456a69a37d7c7badea51d52844 (diff)
downloadlinux-c005828744f584bfcd2cf3ed64dfef15a5078960.tar.xz
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: 7540599a5ef1 ("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>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions