diff options
author | Anisse Astier <anisse@astier.eu> | 2009-12-04 10:10:09 +0100 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-12-24 06:42:00 +0100 |
commit | 3e9b988e4edf065d39c1343937f717319b1c1065 (patch) | |
tree | cbe17a0322f64a3b5ebb8ead6b610cf3cd1f4fb7 /drivers/platform/x86/dell-wmi.c | |
parent | drivers/platform/x86/acerhdf.c: check BIOS information whether it begins with... (diff) | |
download | linux-3e9b988e4edf065d39c1343937f717319b1c1065.tar.xz linux-3e9b988e4edf065d39c1343937f717319b1c1065.zip |
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>
Diffstat (limited to 'drivers/platform/x86/dell-wmi.c')
-rw-r--r-- | drivers/platform/x86/dell-wmi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-wmi.c index 67f3fe71c509..6561dfc028e5 100644 --- a/drivers/platform/x86/dell-wmi.c +++ b/drivers/platform/x86/dell-wmi.c @@ -238,6 +238,7 @@ static void dell_wmi_notify(u32 value, void *context) input_sync(dell_wmi_input_dev); } } + kfree(obj); } |