From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LncLE-00032u-P4 for qemu-devel@nongnu.org; Sat, 28 Mar 2009 13:29:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LncLA-0002zd-8Q for qemu-devel@nongnu.org; Sat, 28 Mar 2009 13:29:04 -0400 Received: from [199.232.76.173] (port=57017 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LncLA-0002zI-2j for qemu-devel@nongnu.org; Sat, 28 Mar 2009 13:29:04 -0400 Received: from savannah.gnu.org ([199.232.41.3]:54369 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LncL9-0006Aj-KZ for qemu-devel@nongnu.org; Sat, 28 Mar 2009 13:29:03 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1LncL9-0005gg-3R for qemu-devel@nongnu.org; Sat, 28 Mar 2009 17:29:03 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1LncL8-0005gc-Tp for qemu-devel@nongnu.org; Sat, 28 Mar 2009 17:29:03 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Sat, 28 Mar 2009 17:29:02 +0000 Subject: [Qemu-devel] [6900] Fix monitor command (screendump) (Stefan Weil) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 6900 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6900 Author: aliguori Date: 2009-03-28 17:29:02 +0000 (Sat, 28 Mar 2009) Log Message: ----------- Fix monitor command (screendump) (Stefan Weil) starting with r6839, the monitor command 'screendump' raises a nullpointer memory access which crashs Qemu. Fix crash when calling screendump from monitor. This was a regression introduced with r6839: DisplayAllocator interface (Stefano Stabellini) Signed-off-by: Stefan Weil Signed-off-by: Anthony Liguori Modified Paths: -------------- trunk/hw/vga.c Modified: trunk/hw/vga.c =================================================================== --- trunk/hw/vga.c 2009-03-28 17:28:58 UTC (rev 6899) +++ trunk/hw/vga.c 2009-03-28 17:29:02 UTC (rev 6900) @@ -2637,6 +2637,7 @@ dcl.dpy_resize = vga_save_dpy_resize; dcl.dpy_refresh = vga_save_dpy_refresh; register_displaychangelistener(ds, &dcl); + ds->allocator = &default_allocator; ds->surface = qemu_create_displaysurface(ds, w, h); s->ds = ds;