[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Fixed bug [Bug 38672] - bugzilla.kernel.org
From: |
Stefan BOSAK |
Subject: |
[Qemu-devel] Fixed bug [Bug 38672] - bugzilla.kernel.org |
Date: |
Fri, 08 Jul 2011 22:26:16 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110708 Thunderbird/5.0 |
Hello.
Bug is in (xen-mapcache.c):
Reported-by: Steve <address@hidden>
Signed-off-by: Steve <address@hidden>
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));
}
static void qemu_remap_bucket(MapCacheEntry *entry,
Should somebody commit this fix ?
Thank you for your time.
- [Qemu-devel] Fixed bug [Bug 38672] - bugzilla.kernel.org,
Stefan BOSAK <=