Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ACPI: CPPC: Add NULL pointer check to cppc_get_perf()
Check cpc_desc against NULL in cppc_get_perf(), so it doesn't crash down the road if cpc_desc is NULL. Fixes: 0654cf0 ("ACPI: CPPC: Introduce cppc_get_nominal_perf()") Reported-by: Kai-Heng Feng <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]> Cc: 5.15+ <[email protected]> # 5.15+ Tested-by: Kai-Heng Feng <[email protected]>
- Loading branch information