diff options
| author | Axel Lin <[email protected]> | 2010-07-20 15:19:52 -0700 |
|---|---|---|
| committer | Matthew Garrett <[email protected]> | 2010-08-03 09:49:03 -0400 |
| commit | 669048639ca6d3fdfb2e75dd77b8f49434d57625 (patch) | |
| tree | 86a30799d2a76d1913b3ca9116bead864732cf49 /tools/perf/scripts/python/syscall-counts.py | |
| parent | f8ef3aecabe0e386303d028d02b6e5b23ac3a566 (diff) | |
acer-wmi: fix memory leaks in WMID_set_capabilities and get_wmid_devices
When acpi_evaluate_object() is passed ACPI_ALLOCATE_BUFFER, the caller
must kfree the returned buffer if AE_OK is returned.
The callers of wmi_query_block() pass ACPI_ALLOCATE_BUFFER, and thus must
check its return value before accessing or kfree() on the buffer.
This patch adds a missing kfree(out.pointer) before exit
WMID_set_capabilities() and get_wmid_devices().
Signed-off-by: Axel Lin <[email protected]>
Acked-by: Carlos Corbacho <[email protected]>
Cc: Matthew Garrett <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Matthew Garrett <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions