Signed-off-by: Dmitry Torokhov <[email protected]>
---

 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 5abb2ad..4032fa4 100644
--- a/drivers/platform/x86/wmi.c
+++ b/drivers/platform/x86/wmi.c
@@ -836,6 +836,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;

--
To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" 
in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to