Skip to content

Commit

Permalink
KVM: MIPS: Enable after disabling interrupt
Browse files Browse the repository at this point in the history
Enable disabled interrupt, on unsuccessful operation.

Found by Coccinelle.

Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
  • Loading branch information
Tapasweni Pathak authored and Marcelo Tosatti committed Mar 2, 2015
1 parent b3cffac commit cfec0e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/mips/kvm/tlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ int kvm_mips_host_tlb_write(struct kvm_vcpu *vcpu, unsigned long entryhi,
if (idx > current_cpu_data.tlbsize) {
kvm_err("%s: Invalid Index: %d\n", __func__, idx);
kvm_mips_dump_host_tlbs();
local_irq_restore(flags);
return -1;
}

Expand Down

0 comments on commit cfec0e7

Please sign in to comment.