Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;