projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64ed0ab
)
WMI: fix potential NULL pointer dereference
author
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Thu, 26 Aug 2010 07:15:03 +0000
(
00:15
-0700)
committer
Matthew Garrett
<mjg@redhat.com>
Thu, 21 Oct 2010 13:36:47 +0000
(09:36 -0400)
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/wmi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/platform/x86/wmi.c
b/drivers/platform/x86/wmi.c
index a24a4b52c919135589bcfa89de0fb7b334041a6e..81552bca6ae42886d95cbc2847e1e3b541ddd72c 100644
(file)
--- 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;