Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wei Yongjun and committed by
Alexander Graf
d133b40f ed840ee9

+1 -1
+1 -1
arch/powerpc/kvm/mpic.c
··· 1486 1486 1487 1487 map_mmio(opp); 1488 1488 1489 - mutex_unlock(&opp->kvm->slots_lock); 1490 1489 out: 1490 + mutex_unlock(&opp->kvm->slots_lock); 1491 1491 return 0; 1492 1492 } 1493 1493