KVM: SEV: fix double locking due to incorrect backport
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 Feb 2021 18:40:58 +0000 (13:40 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Feb 2021 14:02:25 +0000 (15:02 +0100)
commitf49731dfdb2031c185081c09a730d4b38fe84c27
treecefd18e1a418fc2b4b8c533a5ff4f176003a2ef5
parent850e6a95deb5a9e6e922ace64bf2dd0ed290ecb7
KVM: SEV: fix double locking due to incorrect backport

Fix an incorrect line in the 5.4.y and 4.19.y backports of commit
19a23da53932bc ("Fix unsynchronized access to sev members through
svm_register_enc_region"), first applied to 5.4.98 and 4.19.176.

Fixes: 1e80fdc09d12 ("KVM: SVM: Pin guest memory when SEV is active")
Reported-by: Dov Murik <dovmurik@linux.vnet.ibm.com>
Cc: stable@vger.kernel.org # 5.4.x
Cc: stable@vger.kernel.org # 4.19.x
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/kvm/svm.c