Rafael J. Wysocki e0b8e1ae83 ACPI: CPPC: Add NULL pointer check to cppc_get_perf()
commit 935dff305da2be7957a5ce8f07f45d6c4c1c6984 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-12-01 09:04:38 +01:00
..
2021-08-04 18:08:50 +02:00
2021-11-18 19:16:19 +01:00
2021-06-23 19:27:50 +02:00
2021-09-01 08:44:42 -07:00
2021-06-30 12:21:16 -07:00
2020-11-09 19:25:20 +01:00
2021-07-02 13:22:47 -07:00
2021-06-07 15:36:46 +02:00
2020-11-09 19:08:06 +01:00
2021-06-25 15:02:43 +02:00
2020-11-09 19:08:06 +01:00