[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 01/12] spice: init dcl before registering qxl int
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH v2 01/12] spice: init dcl before registering qxl interface |
Date: |
Fri, 19 Feb 2016 10:14:38 +0100 |
Without this spice might callback into qemu before ssd->dcl.con is
initialized, resulting in a segfault due to NULL pointer dereference.
Signed-off-by: Gerd Hoffmann <address@hidden>
---
ui/spice-display.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ui/spice-display.c b/ui/spice-display.c
index 8a5b325..cdbc78d 100644
--- a/ui/spice-display.c
+++ b/ui/spice-display.c
@@ -775,14 +775,14 @@ static void qemu_spice_display_init_one(QemuConsole *con)
qemu_spice_display_init_common(ssd);
+ ssd->dcl.ops = &display_listener_ops;
+ ssd->dcl.con = con;
+
ssd->qxl.base.sif = &dpy_interface.base;
qemu_spice_add_display_interface(&ssd->qxl, con);
assert(ssd->worker);
-
qemu_spice_create_host_memslot(ssd);
- ssd->dcl.ops = &display_listener_ops;
- ssd->dcl.con = con;
register_displaychangelistener(&ssd->dcl);
}
--
1.8.3.1
- [Qemu-devel] [PATCH v2 00/12] spice: add opengl/virgl/dmabuf support, Gerd Hoffmann, 2016/02/19
- [Qemu-devel] [PATCH v2 06/12] spice: add unblock timer, Gerd Hoffmann, 2016/02/19
- [Qemu-devel] [PATCH v2 02/12] configure: add dma-buf support detection., Gerd Hoffmann, 2016/02/19
- [Qemu-devel] [PATCH v2 07/12] spice: tweak debug messages., Gerd Hoffmann, 2016/02/19
- [Qemu-devel] [PATCH v2 10/12] spice/gl: create dummy primary surface (RfC), Gerd Hoffmann, 2016/02/19
- [Qemu-devel] [PATCH v2 01/12] spice: init dcl before registering qxl interface,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH v2 03/12] egl-helpers: add functions for render nodes and dma-buf passing, Gerd Hoffmann, 2016/02/19
- [Qemu-devel] [PATCH v2 11/12] spice: add & use qemu_spice_gl_monitor_config, Gerd Hoffmann, 2016/02/19
- [Qemu-devel] [PATCH v2 04/12] spice: reset cursor on resize, Gerd Hoffmann, 2016/02/19
- [Qemu-devel] [PATCH v2 12/12] [fixup] spice: qemu_spice_gl_monitor_config + surface, Gerd Hoffmann, 2016/02/19
- [Qemu-devel] [PATCH v2 08/12] console: track gl_block state in QemuConsole, Gerd Hoffmann, 2016/02/19
- [Qemu-devel] [PATCH v2 09/12] spice/gl: render DisplaySurface via opengl, Gerd Hoffmann, 2016/02/19
- [Qemu-devel] [PATCH v2 05/12] spice: add opengl/virgl/dmabuf support, Gerd Hoffmann, 2016/02/19