Skip to content

Commit

Permalink
kvm/ppc/mpic: fix missing unlock in set_base_addr()
Browse files Browse the repository at this point in the history
Add the missing unlock before return from function set_base_addr()
when disables the mapping.

Introduced by commit 5df554a
(kvm/ppc/mpic: in-kernel MPIC emulation)

Signed-off-by: Wei Yongjun <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
  • Loading branch information
Wei Yongjun authored and agraf committed May 2, 2013
1 parent ed840ee commit d133b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kvm/mpic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit d133b40

Please sign in to comment.