KVM: PPC: add missing pt_regs initialization
Subsystems (3)
PATCH 1/1 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 <[email protected]>
Cc Scott Wood <[email protected]>
Cc Mihai Caraman <[email protected]>
--- arch/powerpc/kvm/booke.c | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/kvm/booke.c +1 -0
@@ -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 :
Signature · 1 line
1.8.3.1
Alexander Graf
AppliedQuoted 8 lines · Laurentiu Tudor
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 <[email protected]>Cc Scott Wood <[email protected]>Cc Mihai Caraman <[email protected]>
Thanks, applied to kvm-ppc-queue.
Alex