diff options
| author | Rafael J. Wysocki <[email protected]> | 2021-11-18 13:37:38 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2021-11-24 12:40:47 +0000 |
| commit | 935dff305da2be7957a5ce8f07f45d6c4c1c6984 (patch) | |
| tree | 29c7df663045829ef486224688d891d61ae84dcd /net/unix/af_unix.c | |
| parent | Linux 5.16-rc2 (diff) | |
| download | kernel-935dff305da2be7957a5ce8f07f45d6c4c1c6984.tar.gz kernel-935dff305da2be7957a5ce8f07f45d6c4c1c6984.zip | |
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 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
