]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: dell-wmi-sysman: fix a NULL pointer dereference
authorMario Limonciello <mario.limonciello@dell.com>
Fri, 29 Jan 2021 17:26:54 +0000 (11:26 -0600)
committerHans de Goede <hdegoede@redhat.com>
Sun, 31 Jan 2021 19:58:58 +0000 (20:58 +0100)
commit32c963269254347d8a7f62f929c32c750b00e211
treef3ff3d8950dfd79e585226b7734e88f83409c257
parentc80661ee14bf3f50c2fb9c1c2fb77269775f4578
platform/x86: dell-wmi-sysman: fix a NULL pointer dereference

An upcoming Dell platform is causing a NULL pointer dereference
in dell-wmi-sysman initialization.  Validate that the input from
BIOS matches correct ACPI types and abort module initialization
if it fails.

Signed-off-by: Mario Limonciello <mario.limonciello@dell.com>
Tested-by: Perry Yuan <perry_yuan@dell.com>
Link: https://lore.kernel.org/r/20210129172654.2326751-1-mario.limonciello@dell.com
[hdegoede@redhat.com: Drop redundant release_attributes_data() call]
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/dell-wmi-sysman/sysman.c