From patchwork Fri Jul 8 20:26:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan BOSAK X-Patchwork-Id: 103941 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 7CFDB1007D1 for ; Sat, 9 Jul 2011 06:45:45 +1000 (EST) Received: from localhost ([::1]:42795 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfHgF-00071p-DT for incoming@patchwork.ozlabs.org; Fri, 08 Jul 2011 16:29:43 -0400 Received: from eggs.gnu.org ([140.186.70.92]:59296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfHdA-00071O-He for qemu-devel@nongnu.org; Fri, 08 Jul 2011 16:26:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QfHd5-0007NE-NZ for qemu-devel@nongnu.org; Fri, 08 Jul 2011 16:26:32 -0400 Received: from vps-01-gentoo.developmententity.sk ([93.184.70.238]:35695 helo=mx1.developmententity.sk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfHd5-0007Mi-CP for qemu-devel@nongnu.org; Fri, 08 Jul 2011 16:26:27 -0400 Received: from [10.0.3.2] (static-78-141-117-224.orange.sk [78.141.117.224]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: stefan.bosak@developmententity.sk) by mx1.developmententity.sk (Postfix) with ESMTPSA id DDD4CC05F9 for ; Fri, 8 Jul 2011 22:26:21 +0200 (CEST) Message-ID: <4E1767E8.40803@feikar.sk> Date: Fri, 08 Jul 2011 22:26:16 +0200 From: Stefan BOSAK User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110708 Thunderbird/5.0 MIME-Version: 1.0 To: qemu-devel@nongnu.org X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 93.184.70.238 Subject: [Qemu-devel] Fixed bug [Bug 38672] - bugzilla.kernel.org X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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)); }