diff options
| author | Axel Lin <[email protected]> | 2010-07-20 15:19:53 -0700 |
|---|---|---|
| committer | Matthew Garrett <[email protected]> | 2010-08-03 09:49:04 -0400 |
| commit | 7677fbdff16f5b817bc3dc5d194a8b3350f8f9cb (patch) | |
| tree | 2086eff81fa49d9b9a5ab569a7b867f30c7d24d6 /tools/perf/scripts/python/syscall-counts.py | |
| parent | 669048639ca6d3fdfb2e75dd77b8f49434d57625 (diff) | |
acer-wmi: fix memory leaks in wmab_execute error path
When acpi_evaluate_object() is passed ACPI_ALLOCATE_BUFFER, the caller
must kfree the returned buffer if AE_OK is returned.
Call Trace:
wmab_execute
-> wmi_evaluate_method
-> acpi_evaluate_object
Thus if callers of wmab_execute() pass ACPI_ALLOCATE_BUFFER, the return
buffer must be kfreed if wmab_execute return AE_OK.
[[email protected]: avoid multiple return points, remove unneeded cast, remove unneeded initialisation of `status']
Signed-off-by: Axel Lin <[email protected]>
Acked-by: Carlos Corbacho <[email protected]>
Cc: Matthew Garrett <[email protected]>
Cc: Thomas Renninger <[email protected]>
Cc: Alan Jenkins <[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