commit | 935dff305da2be7957a5ce8f07f45d6c4c1c6984 | [log] [tgz] |
---|---|---|
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Thu Nov 18 14:37:38 2021 +0100 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Wed Nov 24 13:40:47 2021 +0100 |
tree | 29c7df663045829ef486224688d891d61ae84dcd | |
parent | 136057256686de39cc3a07c2e39ef6bc43003ff6 [diff] |
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: 0654cf05d17b ("ACPI: CPPC: Introduce cppc_get_nominal_perf()") Reported-by: Kai-Heng Feng <kai.heng.feng@canonical.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Cc: 5.15+ <stable@vger.kernel.org> # 5.15+ Tested-by: Kai-Heng Feng <kai.heng.feng@canonical.com>