summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorVincent Donnefort <vdonnefort@google.com>2026-06-03 12:03:12 +0100
committerMarc Zyngier <maz@kernel.org>2026-06-07 14:58:00 +0100
commit3190bd7d36d71ab595409fd116e80928919b5bd4 (patch)
tree21925033efddda3187e56cc0815a4ddd8aa45b3c /scripts/patch-kernel
parente72b425f617edebf6f374fa39f2c763c9b3696ec (diff)
KVM: arm64: Set a Linux errno on SMCCC error in kvm_call_hyp_nvhe()
If kvm_call_hyp_nvhe() fails with an SMCCC error code, we WARN(). However, the returned value isn't initialized and the caller might get garbage or 0 which is likely to be interpreted as success. Set a default -EOPNOTSUPP error value, ensuring all callers get the message when hypercalls fail. Signed-off-by: Vincent Donnefort <vdonnefort@google.com> Acked-by: Will Deacon <will@kernel.org> Reviewed-by: Fuad Tabba <tabba@google.com> Link: https://patch.msgid.link/20260603110312.2909844-1-vdonnefort@google.com [maz: changed error value to -EOPNOTSUPP as suggested by Will, tidied up change log] Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions