mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
WMI: fix potential NULL pointer dereference
Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Matthew Garrett <mjg@redhat.com>
This commit is contained in:
parent
64ed0ab8d0
commit
3d2c63eb5e
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue