Skip to content
Commit 2324d154 authored by Hoan Tran's avatar Hoan Tran Committed by Rafael J. Wysocki
Browse files

ACPI / CPPC: Prevent cpc_desc_ptr points to the invalid data



When CPPC fails to request a PCC channel, the CPC data is freed
and cpc_desc_ptr points to the invalid data.

Avoid this issue by moving the cpc_desc_ptr assignment after the PCC
channel request.

Signed-off-by: default avatarHoan Tran <hotran@apm.com>
Acked-by: default avatarAshwin Chaugule <ashwin.chaugule@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 8343c40d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment