aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-05-01 15:17:31 -0400
committerAlexander Graf <agraf@suse.de>2013-05-02 09:28:35 -0400
commitd133b40f2cdd527af01090ffd6a041485d1a29b4 (patch)
tree0e9045afeacad60f5e16dabce068ad48ecc92bc7 /arch
parented840ee9c8f15a726a1e7b98c9f5cfc49c2a0ff2 (diff)
kvm/ppc/mpic: fix missing unlock in set_base_addr()
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 <yongjun_wei@trendmicro.com.cn> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kvm/mpic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/mpic.c b/arch/powerpc/kvm/mpic.c
index eaac187eb089..2861ae9eaae6 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)
1486 1486
1487 map_mmio(opp); 1487 map_mmio(opp);
1488 1488
1489 mutex_unlock(&opp->kvm->slots_lock);
1490out: 1489out:
1490 mutex_unlock(&opp->kvm->slots_lock);
1491 return 0; 1491 return 0;
1492} 1492}
1493 1493