Skip to contentSkip to conversation

KVM: PPC: add missing pt_regs initialization

PATCH Applied Laurentiu Tudor 2 participants 2 messages May 18, 2015 – May 25, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

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
index 6c1316a..55e62fb 100644
@@ -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:
Signature · 1 line
1.8.3.1