summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorTudor Laurentiu <b10716@freescale.com>2015-05-18 15:44:27 +0300
committerAlexander Graf <agraf@suse.de>2015-08-22 12:16:17 +0300
commit845ac985cf8e3d52939dbe2446d91e47e91a07b6 (patch)
tree7a76df3f1e627ba5570a2d50a734bce8a4084be2 /arch
parent5358a96341a7fba23cbf0eaf01ce1ab4d738fc90 (diff)
downloadlinux-845ac985cf8e3d52939dbe2446d91e47e91a07b6.tar.xz
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')
-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,
#endif
break;
case BOOKE_INTERRUPT_CRITICAL:
+ kvmppc_fill_pt_regs(&regs);
unknown_exception(&regs);
break;
case BOOKE_INTERRUPT_DEBUG: