Skip to content

Commit

Permalink
Revert "usb-ccid: fix bus leak"
Browse files Browse the repository at this point in the history
The bus is not owned by the device.

This reverts commit 410a096.

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>
  • Loading branch information
elmarco authored and kraxel committed Jun 18, 2018
1 parent 2ef2f16 commit a1738cd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion hw/usb/dev-smartcard-reader.c
Expand Up @@ -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)
Expand Down

0 comments on commit a1738cd

Please sign in to comment.