aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/platform/x86/hp-wmi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.c
index c5f95d1e0315..7e8a136b025b 100644
--- a/drivers/platform/x86/hp-wmi.c
+++ b/drivers/platform/x86/hp-wmi.c
@@ -434,7 +434,9 @@ static void hp_wmi_notify(u32 value, void *context)
434 434
435 obj = (union acpi_object *)response.pointer; 435 obj = (union acpi_object *)response.pointer;
436 436
437 if (obj || obj->type != ACPI_TYPE_BUFFER) { 437 if (!obj)
438 return;
439 if (obj->type != ACPI_TYPE_BUFFER) {
438 printk(KERN_INFO "hp-wmi: Unknown response received %d\n", 440 printk(KERN_INFO "hp-wmi: Unknown response received %d\n",
439 obj->type); 441 obj->type);
440 kfree(obj); 442 kfree(obj);