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

Simplify the error paths in snp_launch_update() 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-4-clopez@suse.de
Link: https://patch.msgid.link/20260310234829.2608037-17-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/sev.c