diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-07-20 22:19:52 (GMT) |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2010-08-03 13:49:03 (GMT) |
commit | 669048639ca6d3fdfb2e75dd77b8f49434d57625 (patch) | |
tree | 86a30799d2a76d1913b3ca9116bead864732cf49 /scripts/headers_check.pl | |
parent | f8ef3aecabe0e386303d028d02b6e5b23ac3a566 (diff) | |
download | linux-fsl-qoriq-669048639ca6d3fdfb2e75dd77b8f49434d57625.tar.xz |
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 <axel.lin@gmail.com>
Acked-by: Carlos Corbacho <carlos@strangeworlds.co.uk>
Cc: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'scripts/headers_check.pl')
0 files changed, 0 insertions, 0 deletions