aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2016-06-08 16:11:41 +0200
committerGerd Hoffmann <kraxel@redhat.com>2016-07-06 10:31:02 +0200
commit2f5ae772c62499873a0da8fffa03594753eb8fa8 (patch)
tree605740fc6c596c255eb81ced3d5c6916f01b99fe
parentde1b9b85eff3dca42fe2cabe6e026cd2a2d5c769 (diff)
qxl: handle no updates in interface_update_area_complete
Simply return early in case there are no updated rects. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 1465395101-13580-1-git-send-email-kraxel@redhat.com
-rw-r--r--hw/display/qxl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/display/qxl.c b/hw/display/qxl.c
index ab96f24a02..47cc6f478a 100644
--- a/hw/display/qxl.c
+++ b/hw/display/qxl.c
@@ -893,7 +893,8 @@ static void interface_update_area_complete(QXLInstance *sin,
int qxl_i;
qemu_mutex_lock(&qxl->ssd.lock);
- if (surface_id != 0 || !qxl->render_update_cookie_num) {
+ if (surface_id != 0 || !num_updated_rects ||
+ !qxl->render_update_cookie_num) {
qemu_mutex_unlock(&qxl->ssd.lock);
return;
}