aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2018-06-13 19:28:13 +0200
committerGerd Hoffmann <kraxel@redhat.com>2018-06-18 09:15:51 +0200
commita1738cd8c58afe43dc610ca778f52f1549ff3a06 (patch)
treed0cc179878773582b4af4ce60cf7c74a6e3a9ee3 /hw
parent2ef2f16781af9dee6ba6517755e9073ba5799fa2 (diff)
downloadqemu-a1738cd8c58afe43dc610ca778f52f1549ff3a06.zip
qemu-a1738cd8c58afe43dc610ca778f52f1549ff3a06.tar.gz
qemu-a1738cd8c58afe43dc610ca778f52f1549ff3a06.tar.bz2
Revert "usb-ccid: fix bus leak"
The bus is not owned by the device. This reverts commit 410a096adf991ce437d4d7dabc59b6557e6d488d. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-id: 20180613172815.32738-2-marcandre.lureau@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/usb/dev-smartcard-reader.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c
index fa546fb..13d0bef 100644
--- a/hw/usb/dev-smartcard-reader.c
+++ b/hw/usb/dev-smartcard-reader.c
@@ -1147,7 +1147,6 @@ static void ccid_unrealize(USBDevice *dev, Error **errp)
USBCCIDState *s = USB_CCID_DEV(dev);
ccid_bulk_in_clear(s);
- object_unref(OBJECT(&s->bus));
}
static void ccid_flush_pending_answers(USBCCIDState *s)