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

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