hp-wmi: remove double free caused by merge conflict
authorAnisse Astier <anisse@astier.eu>
Thu, 31 Dec 2009 15:41:33 +0000 (16:41 +0100)
committerLen Brown <len.brown@intel.com>
Fri, 1 Jan 2010 19:04:25 +0000 (14:04 -0500)
Commit 3e9b988e4edf065d39c1343937f717319b1c1065
"wmi: Free the allocated acpi objects through wmi_get_event_data"
had the same purpose as commit
44ef00e6482e755f36629773abc2aee83a6f53e3
"hp-wmi: Fix two memleaks"

This should solve this regression:

http://bugzilla.kernel.org/show_bug.cgi?id=14890

Signed-off-by: Anisse Astier <anisse@astier.eu>
Reported-by: Sedat Dilek <sedat.dilek@googlemail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/hp-wmi.c

index 5b648f0..ad4c414 100644 (file)
@@ -393,8 +393,6 @@ static void hp_wmi_notify(u32 value, void *context)
        } else
                printk(KERN_INFO "HP WMI: Unknown key pressed - %x\n",
                        eventcode);
-
-       kfree(obj);
 }
 
 static int __init hp_wmi_input_setup(void)