Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KVM: fix lock imbalance in kvm_*_irq_source_id()
Stanse found 2 lock imbalances in kvm_request_irq_source_id and kvm_free_irq_source_id. They omit to unlock kvm->irq_lock on fail paths. Fix that by adding unlock labels at the end of the functions and jump there from the fail paths. Signed-off-by: Jiri Slaby <[email protected]> Cc: Marcelo Tosatti <[email protected]> Signed-off-by: Avi Kivity <[email protected]>
- Loading branch information