]> git.proxmox.com Git - qemu.git/commit
kvm/apic: correct short memset
authorJim Meyering <meyering@redhat.com>
Thu, 10 May 2012 16:19:47 +0000 (18:19 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 25 Jun 2012 13:53:05 +0000 (08:53 -0500)
commitca09717e8e0664801522781962a3c727d04eef33
treeab924e07f06395e2ecd58a8886a0d7f33285d21a
parent0cc21de484d4f00c7b7cacb487bd343cc55effa5
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>
(cherry picked from commit 0614cb82ca27bdffb83864e693fc29e29182667b)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/kvm/apic.c