Commit 3d2c63eb authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by Matthew Garrett

WMI: fix potential NULL pointer dereference

Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
parent 64ed0ab8
......@@ -824,6 +824,8 @@ static acpi_status parse_wdg(acpi_handle handle)
return status;
obj = (union acpi_object *) out.pointer;
if (!obj)
return AE_ERROR;
if (obj->type != ACPI_TYPE_BUFFER) {
status = AE_ERROR;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment