+1
-1
arch/arm64/kernel/psci.c
+1
-1
arch/arm64/kernel/psci.c
···
528
528
if (WARN_ON_ONCE(!index))
529
529
return -EINVAL;
530
530
531
-
if (state->type == PSCI_POWER_STATE_TYPE_STANDBY)
531
+
if (state[index - 1].type == PSCI_POWER_STATE_TYPE_STANDBY)
532
532
ret = psci_ops.cpu_suspend(state[index - 1], 0);
533
533
else
534
534
ret = __cpu_suspend(index, psci_suspend_finisher);