From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754657AbbCBWTR (ORCPT ); Mon, 2 Mar 2015 17:19:17 -0500 Received: from mx1.redhat.com ([209.132.183.28]:33426 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751266AbbCBWTQ (ORCPT ); Mon, 2 Mar 2015 17:19:16 -0500 Date: Mon, 2 Mar 2015 19:18:49 -0300 From: Marcelo Tosatti To: Tapasweni Pathak Cc: gleb@kernel.org, pbonzini@redhat.com, ralf@linux-mips.org, kvm@vger.kernel.org, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, julia.lawall@lip6.fr Subject: Re: [PATCH] arch: mips: kvm: Enable after disabling interrupt Message-ID: <20150302221849.GB4095@amt.cnet> References: <20150222161821.GA6980@kt-Inspiron-3542> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150222161821.GA6980@kt-Inspiron-3542> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 22, 2015 at 09:48:21PM +0530, Tapasweni Pathak wrote: > Enable disabled interrupt, on unsuccessful operation. > > Found by Coccinelle. > > Signed-off-by: Tapasweni Pathak > Acked-by: Julia Lawall > --- > arch/mips/kvm/tlb.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/mips/kvm/tlb.c b/arch/mips/kvm/tlb.c > index bbcd822..b6beb0e 100644 > --- a/arch/mips/kvm/tlb.c > +++ b/arch/mips/kvm/tlb.c > @@ -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.