summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/acer-wmi.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2010-06-29 03:09:47 (GMT)
committerMatthew Garrett <mjg@redhat.com>2010-08-03 13:48:51 (GMT)
commitd8eca1105fe2039e102c6a8a915d0af937b1b593 (patch)
tree5892ef1f6d5b536cc65adb9c217c11cfaf4c5e16 /drivers/platform/x86/acer-wmi.c
parent1492616a434dae1908d0da2d6ee6605ca5a77e6f (diff)
downloadlinux-d8eca1105fe2039e102c6a8a915d0af937b1b593.tar.xz
asus-laptop: fix a memory leak in asus_laptop_get_info error path
The callers of write_acpi_int_ret() pass ACPI_ALLOCATE_BUFFER, the caller must kfree the returned buffer if AE_OK is returned. This patch adds a missing kfree(buffer.pointer) before return -ENOMEM if kstrdup fail. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Corentin Chary <corentincj@iksaif.net> Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform/x86/acer-wmi.c')
0 files changed, 0 insertions, 0 deletions