Blame SOURCES/kvm-ui-fix-dcl-unregister.patch

9bac43
From 0632da4d9e2ec1e445840299f1e0fbda7a61bef4 Mon Sep 17 00:00:00 2001
9bac43
From: Gerd Hoffmann <kraxel@redhat.com>
9bac43
Date: Fri, 12 Jan 2018 13:47:48 +0100
9bac43
Subject: [PATCH 07/12] ui: fix dcl unregister
9bac43
MIME-Version: 1.0
9bac43
Content-Type: text/plain; charset=UTF-8
9bac43
Content-Transfer-Encoding: 8bit
9bac43
9bac43
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
9bac43
Message-id: <20180112134748.13701-2-kraxel@redhat.com>
9bac43
Patchwork-id: 78568
9bac43
O-Subject: [RHV7.5 qemu-kvm-rhev PATCH 1/1] ui: fix dcl unregister
9bac43
Bugzilla: 1510809
9bac43
RH-Acked-by: John Snow <jsnow@redhat.com>
9bac43
RH-Acked-by: Jeffrey Cody <jcody@redhat.com>
9bac43
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
9bac43
9bac43
register checks for dcl->ds being NULL, to avoid registering
9bac43
the same dcl twice.
9bac43
9bac43
Therefore dcl->ds must be cleared on unregister, otherwise
9bac43
un-registering and re-registering doesn't work.
9bac43
9bac43
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1510809
9bac43
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
9bac43
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
9bac43
Message-id: 20171109105154.29414-1-kraxel@redhat.com
9bac43
(cherry picked from commit 777c5f1e436d334a57b650b6951c13d8d2799df0)
9bac43
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9bac43
---
9bac43
 ui/console.c | 1 +
9bac43
 1 file changed, 1 insertion(+)
9bac43
9bac43
diff --git a/ui/console.c b/ui/console.c
9bac43
index 2616f9c..6967fd4 100644
9bac43
--- a/ui/console.c
9bac43
+++ b/ui/console.c
9bac43
@@ -1489,6 +1489,7 @@ void unregister_displaychangelistener(DisplayChangeListener *dcl)
9bac43
         dcl->con->dcls--;
9bac43
     }
9bac43
     QLIST_REMOVE(dcl, next);
9bac43
+    dcl->ds = NULL;
9bac43
     gui_setup_refresh(ds);
9bac43
 }
9bac43
 
9bac43
-- 
9bac43
1.8.3.1
9bac43