git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1492616
)
asus-laptop: fix a memory leak in asus_laptop_get_info error path
author
Axel Lin
<axel.lin@gmail.com>
Tue, 29 Jun 2010 03:09:47 +0000
(11:09 +0800)
committer
Matthew Garrett
<mjg@redhat.com>
Tue, 3 Aug 2010 13:48:51 +0000
(09:48 -0400)
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>
drivers/platform/x86/asus-laptop.c
patch
|
blob
|
history
diff --cc
drivers/platform/x86/asus-laptop.c
Simple merge