From patchwork Fri Jul 8 20:26:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Fixed bug [Bug 38672] - bugzilla.kernel.org X-Patchwork-Submitter: Stefan BOSAK X-Patchwork-Id: 103941 Message-Id: <4E1767E8.40803@feikar.sk> To: qemu-devel@nongnu.org Date: Fri, 08 Jul 2011 22:26:16 +0200 From: Stefan BOSAK List-Id: Hello. Bug is in (xen-mapcache.c): Reported-by: Steve Signed-off-by: Steve static void qemu_remap_bucket(MapCacheEntry *entry, Should somebody commit this fix ? Thank you for your time. diff --git a/xen-mapcache.c b/xen-mapcache.c index 57fe24d..1c3b5bf 100644 --- a/xen-mapcache.c +++ b/xen-mapcache.c @@ -107,7 +107,7 @@ void qemu_map_cache_init(void) size = mapcache->nr_buckets * sizeof (MapCacheEntry); size = (size + XC_PAGE_SIZE - 1) & ~(XC_PAGE_SIZE - 1); DPRINTF("qemu_map_cache_init, nr_buckets = %lx size %lu\n", mapcache->nr_buckets, size); - mapcache->entry = qemu_mallocz(size); + mapcache->entry = qemu_mallocz(size*sizeof(MapCacheEntry)); }