]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: SEV: use mutex guard in snp_handle_guest_req()
authorCarlos López <clopez@suse.de>
Tue, 10 Mar 2026 23:48:27 +0000 (16:48 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 9 Apr 2026 19:00:22 +0000 (12:00 -0700)
commitf09b7f4af9bb8a0e4f219bb2ed6af25b8baa8be3
tree8712eaa89d4c64dd76b3e905c0e2954f8acd721b
parent84841f3941d7e837b23852e966c7bd4f4d6b62e6
KVM: SEV: use mutex guard in snp_handle_guest_req()

Simplify the error paths in snp_handle_guest_req() by using a mutex
guard, allowing early return instead of using gotos.

Signed-off-by: Carlos López <clopez@suse.de>
Link: https://patch.msgid.link/20260120201013.3931334-8-clopez@suse.de
Link: https://patch.msgid.link/20260310234829.2608037-20-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/sev.c