mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-05 06:05:06 +00:00
ACPI / CPPC: Fix potential memory leak
Commit337aadff8e
(ACPI: Introduce CPU performance controls using CPPC) leads to the following static checker warning: drivers/acpi/cppc_acpi.c:527 acpi_cppc_processor_probe() warn: overwrite may leak 'cpc_ptr' Fix the warning by removing the bogus per-CPU pointer dereference. Fixes:337aadff8e
(ACPI: Introduce CPU performance controls using CPPC) Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Ashwin Chaugule <ashwin.chaugule@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
32c0b2f606
commit
4219853aef
1 changed files with 0 additions and 1 deletions
|
@ -524,7 +524,6 @@ int acpi_cppc_processor_probe(struct acpi_processor *pr)
|
|||
return 0;
|
||||
|
||||
out_free:
|
||||
cpc_ptr = per_cpu(cpc_desc_ptr, pr->id);
|
||||
kfree(cpc_ptr);
|
||||
|
||||
out_buf_free:
|
||||
|
|
Loading…
Add table
Reference in a new issue