From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:53303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US2cx-0003BV-EW for qemu-devel@nongnu.org; Tue, 16 Apr 2013 05:56:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1US2cu-0005vc-LR for qemu-devel@nongnu.org; Tue, 16 Apr 2013 05:56:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63432) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US2cu-0005uy-Co for qemu-devel@nongnu.org; Tue, 16 Apr 2013 05:56:36 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r3G9uZ5g007624 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 16 Apr 2013 05:56:35 -0400 From: Gerd Hoffmann Date: Tue, 16 Apr 2013 11:56:28 +0200 Message-Id: <1366106194-28826-4-git-send-email-kraxel@redhat.com> In-Reply-To: <1366106194-28826-1-git-send-email-kraxel@redhat.com> References: <1366106194-28826-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 3/9] spice: (32 bit only) fix surface cmd tracking destruction List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alon Levy , Gerd Hoffmann From: Alon Levy No change for 64 bit arches, but for 32 bit previously we zeroed half the surfaces cmd array, instead of all of it. Signed-off-by: Alon Levy Signed-off-by: Gerd Hoffmann --- hw/display/qxl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/display/qxl.c b/hw/display/qxl.c index 1f7c8fe..cb47995 100644 --- a/hw/display/qxl.c +++ b/hw/display/qxl.c @@ -230,7 +230,7 @@ static void qxl_spice_destroy_surfaces_complete(PCIQXLDevice *qxl) trace_qxl_spice_destroy_surfaces_complete(qxl->id); qemu_mutex_lock(&qxl->track_lock); memset(qxl->guest_surfaces.cmds, 0, - sizeof(qxl->guest_surfaces.cmds) * qxl->ssd.num_surfaces); + sizeof(qxl->guest_surfaces.cmds[0]) * qxl->ssd.num_surfaces); qxl->guest_surfaces.count = 0; qemu_mutex_unlock(&qxl->track_lock); } -- 1.7.9.7