kvm/apic: correct short memset
commit0614cb82ca27bdffb83864e693fc29e29182667b
authorJim Meyering <meyering@redhat.com>
Thu, 10 May 2012 16:19:47 +0000 (10 18:19 +0200)
committerAvi Kivity <avi@redhat.com>
Mon, 11 Jun 2012 09:57:40 +0000 (11 12:57 +0300)
tree850da9ec1039f39d7d05cccf9585ab231032e19e
parentdbaf26b3b22daae3be6a89b965e43503e7c3b912
kvm/apic: correct short memset

kvm_put_apic_state's attempt to clear *kapic before setting its
bits cleared sizeof(void*) bytes (no more than 8) rather than the
intended 1024 (KVM_APIC_REG_SIZE) bytes. Spotted by coverity.

Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
hw/kvm/apic.c