Skip to contentSkip to conversation

qxl: handle no updates in interface_update_area_complete

PATCH New Gerd Hoffmann 1 participant 1 message Jun 8, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qxl: handle no updates in interface_update_area_complete

Simply return early in case there are no updated rects.

---
 hw/display/qxl.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
hw/display/qxl.c +2 -1
index 919dc5c..f867cdf 100644
@@ -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;
     }
Signature · 1 line
1.8.3.1