summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorTudor Laurentiu <b10716@freescale.com>2015-05-18 08:44:27 -0400
committerAlexander Graf <agraf@suse.de>2015-08-22 05:16:17 -0400
commit845ac985cf8e3d52939dbe2446d91e47e91a07b6 (patch)
tree7a76df3f1e627ba5570a2d50a734bce8a4084be2 /arch/powerpc
parent5358a96341a7fba23cbf0eaf01ce1ab4d738fc90 (diff)
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 <Laurentiu.Tudor@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/kvm/booke.c1
1 files changed, 1 insertions, 0 deletions
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,
933#endif 933#endif
934 break; 934 break;
935 case BOOKE_INTERRUPT_CRITICAL: 935 case BOOKE_INTERRUPT_CRITICAL:
936 kvmppc_fill_pt_regs(&regs);
936 unknown_exception(&regs); 937 unknown_exception(&regs);
937 break; 938 break;
938 case BOOKE_INTERRUPT_DEBUG: 939 case BOOKE_INTERRUPT_DEBUG: