Commit 81f099ad3266eede194bcb80f44e9ffe1772f257

Authored by aliguori
1 parent 6295e564

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 <weil@mail.berlios.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6900 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 0 deletions
hw/vga.c
... ... @@ -2637,6 +2637,7 @@ static void vga_screen_dump_common(VGAState *s, const char *filename,
2637 2637 dcl.dpy_resize = vga_save_dpy_resize;
2638 2638 dcl.dpy_refresh = vga_save_dpy_refresh;
2639 2639 register_displaychangelistener(ds, &dcl);
  2640 + ds->allocator = &default_allocator;
2640 2641 ds->surface = qemu_create_displaysurface(ds, w, h);
2641 2642  
2642 2643 s->ds = ds;
... ...