From: Tudor Laurentiu Date: Mon, 18 May 2015 12:44:27 +0000 (+0300) Subject: KVM: PPC: add missing pt_regs initialization X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=845ac985cf8e3d52939dbe2446d91e47e91a07b6;p=linux-beck.git KVM: PPC: add missing pt_regs initialization 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 Signed-off-by: Alexander Graf --- diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c index cc5842657161..ae458f0fd061 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: