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

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