From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34432) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKjhM-0005Qg-7O for qemu-devel@nongnu.org; Wed, 06 Jul 2016 06:04:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKjhH-0002E3-VD for qemu-devel@nongnu.org; Wed, 06 Jul 2016 06:04:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47581) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKjhH-0002Dj-Pm for qemu-devel@nongnu.org; Wed, 06 Jul 2016 06:04:47 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (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 0041BC04B313 for ; Wed, 6 Jul 2016 10:04:47 +0000 (UTC) From: Gerd Hoffmann Date: Wed, 6 Jul 2016 12:04:35 +0200 Message-Id: <1467799482-26420-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1467799482-26420-1-git-send-email-kraxel@redhat.com> References: <1467799482-26420-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PULL 2/9] 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 Message-id: 1465395101-13580-1-git-send-email-kraxel@redhat.com --- 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 ab96f24..47cc6f4 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