From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Graf Date: Thu, 02 May 2013 13:32:50 +0000 Subject: [PATCH 5/6] kvm/ppc/mpic: fix missing unlock in set_base_addr() Message-Id: <1367501571-15509-6-git-send-email-agraf@suse.de> List-Id: References: <1367501571-15509-1-git-send-email-agraf@suse.de> In-Reply-To: <1367501571-15509-1-git-send-email-agraf@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-ppc@vger.kernel.org Cc: "kvm@vger.kernel.org mailing list" , Gleb Natapov , Marcelo Tosatti , Wei Yongjun From: Wei Yongjun Add the missing unlock before return from function set_base_addr() when disables the mapping. Introduced by commit 5df554ad5b7522ea62b0ff9d5be35183494efc21 (kvm/ppc/mpic: in-kernel MPIC emulation) Signed-off-by: Wei Yongjun Signed-off-by: Alexander Graf --- arch/powerpc/kvm/mpic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kvm/mpic.c b/arch/powerpc/kvm/mpic.c index eaac187..2861ae9 100644 --- a/arch/powerpc/kvm/mpic.c +++ b/arch/powerpc/kvm/mpic.c @@ -1486,8 +1486,8 @@ static int set_base_addr(struct openpic *opp, struct kvm_device_attr *attr) map_mmio(opp); - mutex_unlock(&opp->kvm->slots_lock); out: + mutex_unlock(&opp->kvm->slots_lock); return 0; } -- 1.8.1.4