KVM: PPC: Book3S HV: Release lock on page-out failure path
authorBharata B Rao <bharata@linux.ibm.com>
Wed, 22 Jan 2020 04:55:42 +0000 (10:25 +0530)
committerPaul Mackerras <paulus@ozlabs.org>
Wed, 29 Jan 2020 05:47:45 +0000 (16:47 +1100)
commite032e3b55b6f487e48c163c5dca74086f147a169
treefe54aaa13a567edb1122f18b86894783d652712d
parent3a43970d55e9fd5475d3c4e5fe398ab831ec6c3a
KVM: PPC: Book3S HV: Release lock on page-out failure path

When migrate_vma_setup() fails in kvmppc_svm_page_out(),
release kvm->arch.uvmem_lock before returning.

Fixes: ca9f4942670 ("KVM: PPC: Book3S HV: Support for running secure guests")
Signed-off-by: Bharata B Rao <bharata@linux.ibm.com>
Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_hv_uvmem.c