diff --git a/arch/arm64/kvm/arm.c b/arch/arm64/kvm/arm.c index b25b4c19feeb..64258d26ba24 100644 --- a/arch/arm64/kvm/arm.c +++ b/arch/arm64/kvm/arm.c @@ -1809,8 +1809,10 @@ static int init_hyp_mode(void) if (is_protected_kvm_enabled()) { init_cpu_logical_map(); - if (!init_psci_relay()) + if (!init_psci_relay()) { + err = -ENODEV; goto out_err; + } } return 0;