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 5df554ad5b
(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>
This commit is contained in:
Родитель
ed840ee9c8
Коммит
d133b40f2c
|
@ -1486,8 +1486,8 @@ static int set_base_addr(struct openpic *opp, struct kvm_device_attr *attr)
|
||||||
|
|
||||||
map_mmio(opp);
|
map_mmio(opp);
|
||||||
|
|
||||||
mutex_unlock(&opp->kvm->slots_lock);
|
|
||||||
out:
|
out:
|
||||||
|
mutex_unlock(&opp->kvm->slots_lock);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче