Commit 46332437 authored by Sean Christopherson's avatar Sean Christopherson
Browse files

KVM: SVM: Use guard(mutex) to simplify SNP AP Creation error handling



Use guard(mutex) in sev_snp_ap_creation() and modify the error paths to
return directly instead of jumping to a common exit point.

No functional change intended.

Reviewed-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
Reviewed-by: default avatarPankaj Gupta <pankaj.gupta@amd.com>
Link: https://lore.kernel.org/r/20250227012541.3234589-8-seanjc@google.com


Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent c6e129fb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment