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