Commit 845ac985 authored by Tudor Laurentiu's avatar Tudor Laurentiu Committed by Alexander Graf

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: default avatarLaurentiu Tudor <Laurentiu.Tudor@freescale.com>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent 5358a963
...@@ -933,6 +933,7 @@ static void kvmppc_restart_interrupt(struct kvm_vcpu *vcpu, ...@@ -933,6 +933,7 @@ static void kvmppc_restart_interrupt(struct kvm_vcpu *vcpu,
#endif #endif
break; break;
case BOOKE_INTERRUPT_CRITICAL: case BOOKE_INTERRUPT_CRITICAL:
kvmppc_fill_pt_regs(&regs);
unknown_exception(&regs); unknown_exception(&regs);
break; break;
case BOOKE_INTERRUPT_DEBUG: case BOOKE_INTERRUPT_DEBUG:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment