From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48100) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAeD9-0000hw-Sq for qemu-devel@nongnu.org; Wed, 08 Jun 2016 10:12:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAeD1-0007ss-Ph for qemu-devel@nongnu.org; Wed, 08 Jun 2016 10:11:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAeD1-0007sj-Jw for qemu-devel@nongnu.org; Wed, 08 Jun 2016 10:11:51 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1440A12B29 for ; Wed, 8 Jun 2016 14:11:49 +0000 (UTC) From: Gerd Hoffmann Date: Wed, 8 Jun 2016 16:11:41 +0200 Message-Id: <1465395101-13580-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH] qxl: handle no updates in interface_update_area_complete List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Simply return early in case there are no updated rects. Signed-off-by: Gerd Hoffmann --- hw/display/qxl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/display/qxl.c b/hw/display/qxl.c index 919dc5c..f867cdf 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; } -- 1.8.3.1