From: Dmitry Torokhov Date: Thu, 26 Aug 2010 07:15:03 +0000 (-0700) Subject: WMI: fix potential NULL pointer dereference X-Git-Tag: Ubuntu-goldfish-3.4.0-4.27~5443^2~25 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=3d2c63eb5e0abfd06b19928c8ed43020b3451a3c;p=mirror_ubuntu-zesty-kernel.git WMI: fix potential NULL pointer dereference Signed-off-by: Dmitry Torokhov Signed-off-by: Matthew Garrett --- diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c index a24a4b52c919..81552bca6ae4 100644 --- a/drivers/platform/x86/wmi.c +++ b/drivers/platform/x86/wmi.c @@ -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;