From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurentiu Tudor Date: Mon, 18 May 2015 12:44:27 +0000 Subject: [PATCH] KVM: PPC: add missing pt_regs initialization Message-Id: <5559DEAB.90205@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-ppc@vger.kernel.org, Alexander Graf Cc: Laurentiu Tudor , Scott Wood , Mihai Caraman , kvm@vger.kernel.org On this switch branch the regs initialization doesn't happen so add it. This was found with the help of a static code analysis tool. Signed-off-by: Laurentiu Tudor Cc: Scott Wood Cc: Mihai Caraman --- arch/powerpc/kvm/booke.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c index 6c1316a..55e62fb 100644 --- a/arch/powerpc/kvm/booke.c +++ b/arch/powerpc/kvm/booke.c @@ -933,6 +933,7 @@ static void kvmppc_restart_interrupt(struct kvm_vcpu *vcpu, #endif break; case BOOKE_INTERRUPT_CRITICAL: + kvmppc_fill_pt_regs(®s); unknown_exception(®s); break; case BOOKE_INTERRUPT_DEBUG: -- 1.8.3.1 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurentiu Tudor Subject: [PATCH] KVM: PPC: add missing pt_regs initialization Date: Mon, 18 May 2015 15:44:27 +0300 Message-ID: <5559DEAB.90205@freescale.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Cc: Laurentiu Tudor , Scott Wood , Mihai Caraman , To: , Alexander Graf Return-path: Received: from mail-bn1on0116.outbound.protection.outlook.com ([157.56.110.116]:60940 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751412AbbERMph (ORCPT ); Mon, 18 May 2015 08:45:37 -0400 Sender: kvm-owner@vger.kernel.org List-ID: On this switch branch the regs initialization doesn't happen so add it. This was found with the help of a static code analysis tool. Signed-off-by: Laurentiu Tudor Cc: Scott Wood Cc: Mihai Caraman --- arch/powerpc/kvm/booke.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c index 6c1316a..55e62fb 100644 --- a/arch/powerpc/kvm/booke.c +++ b/arch/powerpc/kvm/booke.c @@ -933,6 +933,7 @@ static void kvmppc_restart_interrupt(struct kvm_vcpu *vcpu, #endif break; case BOOKE_INTERRUPT_CRITICAL: + kvmppc_fill_pt_regs(®s); unknown_exception(®s); break; case BOOKE_INTERRUPT_DEBUG: -- 1.8.3.1