diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-08-26 03:15:03 -0400 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2010-10-21 09:36:47 -0400 |
commit | 3d2c63eb5e0abfd06b19928c8ed43020b3451a3c (patch) | |
tree | 785fd8b6ab560a06f78fe29d22599990a09c3dbc /drivers/platform | |
parent | 64ed0ab8d060d28a7787de29c76178c2efc1dd65 (diff) |
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 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) | |||
824 | return status; | 824 | return status; |
825 | 825 | ||
826 | obj = (union acpi_object *) out.pointer; | 826 | obj = (union acpi_object *) out.pointer; |
827 | if (!obj) | ||
828 | return AE_ERROR; | ||
827 | 829 | ||
828 | if (obj->type != ACPI_TYPE_BUFFER) { | 830 | if (obj->type != ACPI_TYPE_BUFFER) { |
829 | status = AE_ERROR; | 831 | status = AE_ERROR; |