diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-08-26 00:15:03 -0700 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2010-10-21 09:36:47 -0400 |
commit | 3d2c63eb5e0abfd06b19928c8ed43020b3451a3c (patch) | |
tree | 785fd8b6ab560a06f78fe29d22599990a09c3dbc /drivers/platform | |
parent | 64ed0ab8d060d28a7787de29c76178c2efc1dd65 (diff) | |
download | kernel_samsung_crespo-3d2c63eb5e0abfd06b19928c8ed43020b3451a3c.zip kernel_samsung_crespo-3d2c63eb5e0abfd06b19928c8ed43020b3451a3c.tar.gz kernel_samsung_crespo-3d2c63eb5e0abfd06b19928c8ed43020b3451a3c.tar.bz2 |
WMI: fix potential NULL pointer dereference
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/wmi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c index a24a4b5..81552bc 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; |