]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: arm64: Fix __pkvm_host_mkyoung_guest() return value
authorMarc Zyngier <maz@kernel.org>
Mon, 10 Feb 2025 09:17:58 +0000 (09:17 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 10 Feb 2025 09:58:16 +0000 (09:58 +0000)
commit8dbccafce3c8ae026606f5c7bc6637667d9d5595
treef5af970c5dffe9100f04d111a30d90bfc55c011a
parenteabc7aaef7a553b64bf6e631ce04526af6c8d104
KVM: arm64: Fix __pkvm_host_mkyoung_guest() return value

Don't use an uninitialised stack variable, and just return 0
on the non-error path.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202502100911.8c9DbtKD-lkp@intel.com/
Reviewed-by: Quentin Perret <qperret@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/hyp/nvhe/mem_protect.c