diff options
author | Rafael J. Wysocki <[email protected]> | 2021-11-18 14:37:38 +0100 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2021-11-24 13:40:47 +0100 |
commit | 935dff305da2be7957a5ce8f07f45d6c4c1c6984 (patch) | |
tree | 29c7df663045829ef486224688d891d61ae84dcd /lib/test_fortify/write_overflow-strncpy.c | |
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 <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Cc: 5.15+ <[email protected]> # 5.15+
Tested-by: Kai-Heng Feng <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy.c')
0 files changed, 0 insertions, 0 deletions