qxl: save qemu_create_displaysurface_from result
PATCH 1/1 qxl: save qemu_create_displaysurface_from result
https://bugzilla.redhat.com/show_bug.cgi?id=885644
Reported-by Markus Armbruster <[email protected]>
Signed-off-by Gerd Hoffmann <[email protected]>
--- hw/qxl-render.c | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-)
hw/qxl-render.c +6 -5
@@ -113,11 +113,12 @@ static void qxl_render_update_area_unlocked(PCIQXLDevice *qxl) qxl->guest_primary.bits_pp);if (qxl->guest_primary.qxl_stride >0 ) {qemu_free_displaysurface (vga->ds); -qemu_create_displaysurface_from (qxl->guest_primary.surface.width, - qxl->guest_primary.surface.height, - qxl->guest_primary.bits_pp, - qxl->guest_primary.abs_stride, - qxl->guest_primary.data); + vga->ds->surface =qemu_create_displaysurface_from + (qxl->guest_primary.surface.width, + qxl->guest_primary.surface.height, + qxl->guest_primary.bits_pp, + qxl->guest_primary.abs_stride, + qxl->guest_primary.data); }else { qemu_resize_displaysurface(vga->ds, qxl->guest_primary.surface.width,
Signature · 1 line
1.7.1
Quoted 4 lines · Gerd Hoffmann
https://bugzilla.redhat.com/show_bug.cgi?id=885644
Reported-by Markus Armbruster <[email protected]>Signed-off-by Gerd Hoffmann <[email protected]>
Spotted by Coverity.
Impact of the bug unknown; would be nice to have in the commit message.
Reviewed-by Markus Armbruster <[email protected]>