We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc3e3d3 commit 7f74c06Copy full SHA for 7f74c06
arch/mips/kernel/smp-cps.c
@@ -332,6 +332,8 @@ static void __init cps_prepare_cpus(unsigned int max_cpus)
332
mips_cps_cluster_bootcfg = kcalloc(nclusters,
333
sizeof(*mips_cps_cluster_bootcfg),
334
GFP_KERNEL);
335
+ if (!mips_cps_cluster_bootcfg)
336
+ goto err_out;
337
338
if (nclusters > 1)
339
mips_cm_update_property();
@@ -348,6 +350,8 @@ static void __init cps_prepare_cpus(unsigned int max_cpus)
348
350
mips_cps_cluster_bootcfg[cl].core_power =
349
351
kcalloc(BITS_TO_LONGS(ncores), sizeof(unsigned long),
352
353
+ if (!mips_cps_cluster_bootcfg[cl].core_power)
354
355
356
/* Allocate VPE boot configuration structs */
357
for (c = 0; c < ncores; c++) {
0 commit comments