]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
KVM: PPC: add missing pt_regs initialization
authorTudor Laurentiu <b10716@freescale.com>
Mon, 18 May 2015 12:44:27 +0000 (15:44 +0300)
committerAlexander Graf <agraf@suse.de>
Sat, 22 Aug 2015 09:16:17 +0000 (11:16 +0200)
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 <Laurentiu.Tudor@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/booke.c

index cc5842657161580262d10fb49e0bdfde4de497fd..ae458f0fd061efea7cdd569c1bdb32970503659c 100644 (file)
@@ -933,6 +933,7 @@ static void kvmppc_restart_interrupt(struct kvm_vcpu *vcpu,
 #endif
                break;
        case BOOKE_INTERRUPT_CRITICAL:
+               kvmppc_fill_pt_regs(&regs);
                unknown_exception(&regs);
                break;
        case BOOKE_INTERRUPT_DEBUG: