vhost: fix mem_sections memory corruption
commit637f7a6a01e09bc39f7b3a24257a9cd6ea396ca0
authorAvi Kivity <avi@redhat.com>
Mon, 9 Jan 2012 11:59:50 +0000 (9 13:59 +0200)
committerAvi Kivity <avi@redhat.com>
Mon, 9 Jan 2012 11:59:50 +0000 (9 13:59 +0200)
treedee4bbeb6cc64db9d622542587363ea84af23321
parentd743c382861eaa1e13f503b05aba5a382a7e7f7c
vhost: fix mem_sections memory corruption

A memset() used to delete an entry in an array did not take into account
the array element's size.

Signed-off-by: Avi Kivity <avi@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
hw/vhost.c