Skip to content
Commit 7f74c066 authored by Thorsten Blum's avatar Thorsten Blum Committed by Thomas Bogendoerfer
Browse files

MIPS: CPS: Fix potential NULL pointer dereferences in cps_prepare_cpus()



Check the return values of kcalloc() and exit early to avoid potential
NULL pointer dereferences.

Compile-tested only.

Cc: stable@vger.kernel.org
Fixes: 75fa6a58 ("MIPS: CPS: Introduce struct cluster_boot_config")
Fixes: 0856c143 ("MIPS: CPS: Boot CPUs in secondary clusters")
Signed-off-by: default avatarThorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent cc3e3d3a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment