wmi: Free the allocated acpi objects through wmi_get_event_data
authorAnisse Astier <anisse@astier.eu>
Fri, 4 Dec 2009 09:10:09 +0000 (10:10 +0100)
committerLen Brown <len.brown@intel.com>
Thu, 24 Dec 2009 05:42:00 +0000 (00:42 -0500)
commit3e9b988e4edf065d39c1343937f717319b1c1065
treecbe17a0322f64a3b5ebb8ead6b610cf3cd1f4fb7
parentdcbfb8156a2149fd6358a377aa9400e28ef43800
wmi: Free the allocated acpi objects through wmi_get_event_data

These function allocate an acpi object by calling wmi_get_event_data, which
then calls acpi_evaluate_object, and it is not freed afterwards.

And kernel doc is fixed for parameters of wmi_get_event_data.

Signed-off-by: Anisse Astier <anisse@astier.eu>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: Carlos Corbacho <carlos@strangeworlds.co.uk>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/dell-wmi.c
drivers/platform/x86/hp-wmi.c
drivers/platform/x86/wmi.c