Skip to content

Commit

Permalink
KVM: PPC: add missing pt_regs initialization
Browse files Browse the repository at this point in the history
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]>
Signed-off-by: Alexander Graf <[email protected]>
  • Loading branch information
Tudor Laurentiu authored and agraf committed Aug 22, 2015
1 parent 5358a96 commit 845ac98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/powerpc/kvm/booke.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 845ac98

Please sign in to comment.