Blame SOURCES/kvm-ccid-card-passthru-fix-regression-in-realize.patch

357786
From a0251ae2c973f3a5a103e7601fabed65cc24c1b0 Mon Sep 17 00:00:00 2001
357786
From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@redhat.com>
357786
Date: Mon, 11 Jun 2018 17:13:26 +0200
357786
Subject: [PATCH 2/9] ccid-card-passthru: fix regression in realize()
357786
MIME-Version: 1.0
357786
Content-Type: text/plain; charset=UTF-8
357786
Content-Transfer-Encoding: 8bit
357786
357786
RH-Author: Marc-André Lureau <marcandre.lureau@redhat.com>
357786
Message-id: <20180611171326.5043-1-marcandre.lureau@redhat.com>
357786
Patchwork-id: 80632
357786
O-Subject: [RHEL-7.6 qemu-kvm-rhev PATCH] ccid-card-passthru: fix regression in realize()
357786
Bugzilla: 1584984
357786
RH-Acked-by: Gerd Hoffmann <kraxel@redhat.com>
357786
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
357786
RH-Acked-by: Thomas Huth <thuth@redhat.com>
357786
357786
Since cc847bfd16d894fd8c1a2ce25f31772f6cdbbc74, CCID card-passthru
357786
fails to intialize, because it changed a debug line to an error,
357786
probably by mistake. Change it back to a DPRINTF debug.
357786
357786
(solves Boxes creating VM with smartcard passthru failing to start)
357786
357786
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
357786
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
357786
Message-id: 20180515153039.27514-1-marcandre.lureau@redhat.com
357786
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
357786
357786
(cherry picked from commit e58d64a16abc2304c4dcb644411eb9580bf63b1e)
357786
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
357786
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
357786
---
357786
 hw/usb/ccid-card-passthru.c | 2 +-
357786
 1 file changed, 1 insertion(+), 1 deletion(-)
357786
357786
diff --git a/hw/usb/ccid-card-passthru.c b/hw/usb/ccid-card-passthru.c
357786
index b7dd360..668a22d 100644
357786
--- a/hw/usb/ccid-card-passthru.c
357786
+++ b/hw/usb/ccid-card-passthru.c
357786
@@ -345,7 +345,7 @@ static void passthru_realize(CCIDCardState *base, Error **errp)
357786
     card->vscard_in_pos = 0;
357786
     card->vscard_in_hdr = 0;
357786
     if (qemu_chr_fe_backend_connected(&card->cs)) {
357786
-        error_setg(errp, "ccid-card-passthru: initing chardev");
357786
+        DPRINTF(card, D_INFO, "ccid-card-passthru: initing chardev");
357786
         qemu_chr_fe_set_handlers(&card->cs,
357786
             ccid_card_vscard_can_read,
357786
             ccid_card_vscard_read,
357786
-- 
357786
1.8.3.1
357786