arch: mips: kvm: Enable after disabling interrupt
PATCH 1/1 arch: mips: kvm: Enable after disabling interrupt
Enable disabled interrupt, on unsuccessful operation.
Found by Coccinelle.
Signed-off-by Tapasweni Pathak <[email protected]>
Acked-by Julia Lawall <[email protected]>
--- arch/mips/kvm/tlb.c | 1 + 1 file changed, 1 insertion(+)
arch/mips/kvm/tlb.c +1 -0
@@ -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 ; }
--
1.7.9.5
Quoted 6 lines · Tapasweni Pathak
Enable disabled interrupt, on unsuccessful operation.
Found by Coccinelle.
Signed-off-by Tapasweni Pathak <[email protected]>Acked-by Julia Lawall <[email protected]>
Reviewed-by James Hogan <[email protected]>
Cheers
James
Quoted 20 lines
--- arch/mips/kvm/tlb.c | 1 + 1 file changed, 1 insertion(+)arch/mips/kvm/tlb.c +1
-1@@ -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 ; } --1.7.9.5
Marcelo Tosatti
AppliedQuoted 15 lines · Tapasweni Pathak
Enable disabled interrupt, on unsuccessful operation.
Found by Coccinelle.
Signed-off-by Tapasweni Pathak <[email protected]>Acked-by Julia Lawall <[email protected]>--- arch/mips/kvm/tlb.c | 1 + 1 file changed, 1 insertion(+)arch/mips/kvm/tlb.c +0
-0
arch/mips/kvm/tlb.c int kvm_mips_host_tlb_write(struct kvm_vcpu *vcpu, unsigned long entryhi, · line 222
Quoted 7 lines
arch/mips/kvm/tlb.c +1
-0@@ -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 ; }
Applied, thanks.