Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d133b40f authored by Wei Yongjun's avatar Wei Yongjun Committed by Alexander Graf
Browse files

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 5df554ad
(kvm/ppc/mpic: in-kernel MPIC emulation)

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent ed840ee9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}