]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RISC-V: KVM: Check kvm_riscv_vcpu_alloc_vector_context() return value
authorAnup Patel <apatel@ventanamicro.com>
Wed, 18 Jun 2025 11:35:21 +0000 (17:05 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 28 Jul 2025 16:57:04 +0000 (22:27 +0530)
commit4a50578a5868f94bb9a8f7bab2ff6ed9122aa1d7
treea1281dce55e072f6d28d7276943cff2cd1ea6c27
parentc046de827c85a70548df8b86ce5f18820ebaaca7
RISC-V: KVM: Check kvm_riscv_vcpu_alloc_vector_context() return value

The kvm_riscv_vcpu_alloc_vector_context() does return an error code
upon failure so don't ignore this in kvm_arch_vcpu_create().

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Tested-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Nutty Liu <liujingqi@lanxincomputing.com>
Link: https://lore.kernel.org/r/20250618113532.471448-2-apatel@ventanamicro.com
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kvm/vcpu.c