summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorKeith Busch <kbusch@kernel.org>2025-02-27 15:06:30 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-03-22 12:56:51 -0700
commitbc19377755cc7b1830403d92a6d969cd911d5606 (patch)
tree3cc7e63d3b3b45c2206f9c7fd1287c55ef95b0ec /arch
parentf49e1153d2f1e38d200977e18a502682b55a897a (diff)
downloadlinux-bc19377755cc7b1830403d92a6d969cd911d5606.tar.gz
linux-bc19377755cc7b1830403d92a6d969cd911d5606.tar.bz2
linux-bc19377755cc7b1830403d92a6d969cd911d5606.zip
vhost: return task creation error instead of NULL
[ Upstream commit cb380909ae3b1ebf14d6a455a4f92d7916d790cb ] Lets callers distinguish why the vhost task creation failed. No one currently cares why it failed, so no real runtime change from this patch, but that will not be the case for long. Signed-off-by: Keith Busch <kbusch@kernel.org> Message-ID: <20250227230631.303431-2-kbusch@meta.com> Reviewed-by: Mike Christie <michael.christie@oracle.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/mmu/mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu/mmu.c b/arch/x86/kvm/mmu/mmu.c
index e102505735a7..0e6bf24093f7 100644
--- a/arch/x86/kvm/mmu/mmu.c
+++ b/arch/x86/kvm/mmu/mmu.c
@@ -7435,7 +7435,7 @@ static void kvm_mmu_start_lpage_recovery(struct once *once)
kvm_nx_huge_page_recovery_worker_kill,
kvm, "kvm-nx-lpage-recovery");
- if (!nx_thread)
+ if (IS_ERR(nx_thread))
return;
vhost_task_start(nx_thread);