KVM: PIT: fix kpit_elapsed division by zero
authorMarcelo Tosatti <mtosatti@redhat.com>
Thu, 2 Jul 2009 23:02:15 +0000 (20:02 -0300)
committerAvi Kivity <avi@redhat.com>
Wed, 5 Aug 2009 10:58:11 +0000 (13:58 +0300)
commit0ff77873b1318fc2d77a85e70690d3cd6cafbd41
treecb08f8c862a445477aae5a74cb087302336d26e4
parente125e7b6944898831b56739a5448e705578bf7e2
KVM: PIT: fix kpit_elapsed division by zero

Fix division by zero triggered by latch count command on uninitialized
counter.

Cc: stable@kernel.org
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/i8254.c