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)
commit64b0efa18f8c3b1baac369b8d74d0fdae02bc4bc
treef3ff3d8950dfd79e585226b7734e88f83409c257
parentd7cbe2773aed0b636d48bb6795637eb486ecba6d
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