[PATCH 1/9] powerpc,kvm: fix imbalance srcu_read_[un]lock()

Lai Jiangshan laijs at cn.fujitsu.com
Sat Mar 16 03:50:49 EST 2013

At the point of up_out label in kvmppc_hv_setup_htab_rma(),
srcu read lock is still held.

We have to release it before return.

Signed-off-by: Lai Jiangshan <laijs at cn.fujitsu.com>
Cc: Marcelo Tosatti <mtosatti at redhat.com>
Cc: Gleb Natapov <gleb at redhat.com>
Cc: Alexander Graf <agraf at suse.de>
Cc: Benjamin Herrenschmidt <benh at kernel.crashing.org>
Cc: Paul Mackerras <paulus at samba.org>
Cc: kvm at vger.kernel.org
Cc: kvm-ppc at vger.kernel.org
 arch/powerpc/kvm/book3s_hv.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c
index 80dcc53..c26740e 100644
--- a/arch/powerpc/kvm/book3s_hv.c
+++ b/arch/powerpc/kvm/book3s_hv.c
@@ -1799,7 +1799,7 @@ static int kvmppc_hv_setup_htab_rma(struct kvm_vcpu *vcpu)
-	goto out;
+	goto out_srcu;
 int kvmppc_core_init_vm(struct kvm *kvm)

More information about the Linuxppc-dev mailing list