From fae2afb10e3fdceab612c62a2b1e8b944ff578d9 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Wed, 25 Apr 2012 12:13:18 +0300 Subject: qxl: check for NULL return from qxl_phys2virt Signed-off-by: Alon Levy Signed-off-by: Gerd Hoffmann --- hw/qxl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hw/qxl.h') diff --git a/hw/qxl.h b/hw/qxl.h index cbb1e2d6d4..31029503fe 100644 --- a/hw/qxl.h +++ b/hw/qxl.h @@ -142,12 +142,12 @@ void qxl_spice_reset_image_cache(PCIQXLDevice *qxl); void qxl_spice_reset_cursor(PCIQXLDevice *qxl); /* qxl-logger.c */ -void qxl_log_cmd_cursor(PCIQXLDevice *qxl, QXLCursorCmd *cmd, int group_id); -void qxl_log_command(PCIQXLDevice *qxl, const char *ring, QXLCommandExt *ext); +int qxl_log_cmd_cursor(PCIQXLDevice *qxl, QXLCursorCmd *cmd, int group_id); +int qxl_log_command(PCIQXLDevice *qxl, const char *ring, QXLCommandExt *ext); /* qxl-render.c */ void qxl_render_resize(PCIQXLDevice *qxl); void qxl_render_update(PCIQXLDevice *qxl); -void qxl_render_cursor(PCIQXLDevice *qxl, QXLCommandExt *ext); +int qxl_render_cursor(PCIQXLDevice *qxl, QXLCommandExt *ext); void qxl_render_update_area_done(PCIQXLDevice *qxl, QXLCookie *cookie); void qxl_render_update_area_bh(void *opaque); -- cgit v1.2.3