Re: [Qemu-devel] [PATCH 2/3] vhost: fix mem_sections memory corruption

2012-01-09 Thread Michael S. Tsirkin
On Mon, Jan 09, 2012 at 02:04:53PM +0200, Avi Kivity wrote: > 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 Acked-by: Michael S. Tsirkin > --- > hw/vhost.c |2 +- > 1 files changed, 1 insertions(+), 1 del

[Qemu-devel] [PATCH 2/3] vhost: fix mem_sections memory corruption

2012-01-09 Thread Avi Kivity
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 --- hw/vhost.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/vhost.c b/hw/vhost.c index 541c716..d924fb0 100644 --- a/hw/vhost.c +++ b/hw/vh