Skip to content

Commit 3a6dbb6

Browse files
committed
MIPS: kvm: Fix build error with KVM_MIPS_DEBUG_COP0_COUNTERS enabled
Commit e4de205 ("MIPS: KVM: Fix NULL pointer dereference") missed converting one place accessing cop0 registers, which results in a build error, if KVM_MIPS_DEBUG_COP0_COUNTERS is enabled. Fixes: e4de205 ("MIPS: KVM: Fix NULL pointer dereference") Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
1 parent 826eeaf commit 3a6dbb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/mips/kvm/stats.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ void kvm_mips_dump_stats(struct kvm_vcpu *vcpu)
5454
kvm_info("\nKVM VCPU[%d] COP0 Access Profile:\n", vcpu->vcpu_id);
5555
for (i = 0; i < N_MIPS_COPROC_REGS; i++) {
5656
for (j = 0; j < N_MIPS_COPROC_SEL; j++) {
57-
if (vcpu->arch.cop0->stat[i][j])
57+
if (vcpu->arch.cop0.stat[i][j])
5858
kvm_info("%s[%d]: %lu\n", kvm_cop0_str[i], j,
59-
vcpu->arch.cop0->stat[i][j]);
59+
vcpu->arch.cop0.stat[i][j]);
6060
}
6161
}
6262
#endif

0 commit comments

Comments
 (0)