summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTudor Laurentiu2015-05-18 14:44:27 +0200
committerAlexander Graf2015-08-22 11:16:17 +0200
commit845ac985cf8e3d52939dbe2446d91e47e91a07b6 (patch)
tree7a76df3f1e627ba5570a2d50a734bce8a4084be2
parentKVM: PPC: Fix warnings from sparse (diff)
downloadkernel-qcow2-linux-845ac985cf8e3d52939dbe2446d91e47e91a07b6.tar.gz
kernel-qcow2-linux-845ac985cf8e3d52939dbe2446d91e47e91a07b6.tar.xz
kernel-qcow2-linux-845ac985cf8e3d52939dbe2446d91e47e91a07b6.zip
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>
-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: