Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c4775062 authored by Thomas Renninger's avatar Thomas Renninger Committed by Matthew Garrett
Browse files

hp-wmi: Fix mixing up of and/or directive



This should have been an "and". Additionally checking for !obj
is even better.

Signed-off-by: default avatarThomas Renninger <trenn@suse.de>
CC: linux-acpi@vger.kernel.or
CC: platform-driver-x86@vger.kernel.org
CC: mjg@redhat.com
Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
parent 4519169b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -434,7 +434,9 @@ static void hp_wmi_notify(u32 value, void *context)

	obj = (union acpi_object *)response.pointer;

	if (obj || obj->type != ACPI_TYPE_BUFFER) {
	if (!obj)
		return;
	if (obj->type != ACPI_TYPE_BUFFER) {
		printk(KERN_INFO "hp-wmi: Unknown response received %d\n",
		       obj->type);
		kfree(obj);