|
|
357786 |
From 5969300e27c6a28f1bc345b84cd9e690780e29f8 Mon Sep 17 00:00:00 2001
|
|
|
357786 |
From: Serhii Popovych <spopovyc@redhat.com>
|
|
|
357786 |
Date: Mon, 9 Jul 2018 11:31:18 +0200
|
|
|
357786 |
Subject: [PATCH 28/89] Revert "usb: release the created buses"
|
|
|
357786 |
MIME-Version: 1.0
|
|
|
357786 |
Content-Type: text/plain; charset=UTF-8
|
|
|
357786 |
Content-Transfer-Encoding: 8bit
|
|
|
357786 |
|
|
|
357786 |
RH-Author: Serhii Popovych <spopovyc@redhat.com>
|
|
|
357786 |
Message-id: <1531135878-18813-4-git-send-email-spopovyc@redhat.com>
|
|
|
357786 |
Patchwork-id: 81266
|
|
|
357786 |
O-Subject: [RHEL-7.6 qemu-kvm-rhev PATCH v2 3/3] Revert "usb: release the created buses"
|
|
|
357786 |
Bugzilla: 1556678
|
|
|
357786 |
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
|
|
|
357786 |
RH-Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
|
357786 |
RH-Acked-by: David Gibson <dgibson@redhat.com>
|
|
|
357786 |
|
|
|
357786 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
|
357786 |
|
|
|
357786 |
The USB device don't hold the bus. There is no ASAN related reports
|
|
|
357786 |
anymore.
|
|
|
357786 |
|
|
|
357786 |
This reverts commit cd7bc87868d534f95e928cad98e2a52df7695771.
|
|
|
357786 |
|
|
|
357786 |
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
|
|
|
357786 |
Message-id: 20180613172815.32738-3-marcandre.lureau@redhat.com
|
|
|
357786 |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
357786 |
(cherry picked from commit 9b5c2fd53feb574036747d0284fd7f73dfedc89c)
|
|
|
357786 |
Signed-off-by: Serhii Popovych <spopovyc@redhat.com>
|
|
|
357786 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
357786 |
---
|
|
|
357786 |
hw/usb/dev-storage.c | 16 ----------------
|
|
|
357786 |
hw/usb/dev-uas.c | 2 --
|
|
|
357786 |
2 files changed, 18 deletions(-)
|
|
|
357786 |
|
|
|
357786 |
diff --git a/hw/usb/dev-storage.c b/hw/usb/dev-storage.c
|
|
|
357786 |
index 68e2062..9fb00a9 100644
|
|
|
357786 |
--- a/hw/usb/dev-storage.c
|
|
|
357786 |
+++ b/hw/usb/dev-storage.c
|
|
|
357786 |
@@ -589,13 +589,6 @@ static const struct SCSIBusInfo usb_msd_scsi_info_bot = {
|
|
|
357786 |
.load_request = usb_msd_load_request,
|
|
|
357786 |
};
|
|
|
357786 |
|
|
|
357786 |
-static void usb_msd_unrealize_storage(USBDevice *dev, Error **errp)
|
|
|
357786 |
-{
|
|
|
357786 |
- MSDState *s = USB_STORAGE_DEV(dev);
|
|
|
357786 |
-
|
|
|
357786 |
- object_unref(OBJECT(&s->bus));
|
|
|
357786 |
-}
|
|
|
357786 |
-
|
|
|
357786 |
static void usb_msd_storage_realize(USBDevice *dev, Error **errp)
|
|
|
357786 |
{
|
|
|
357786 |
MSDState *s = USB_STORAGE_DEV(dev);
|
|
|
357786 |
@@ -645,13 +638,6 @@ static void usb_msd_storage_realize(USBDevice *dev, Error **errp)
|
|
|
357786 |
s->scsi_dev = scsi_dev;
|
|
|
357786 |
}
|
|
|
357786 |
|
|
|
357786 |
-static void usb_msd_bot_unrealize(USBDevice *dev, Error **errp)
|
|
|
357786 |
-{
|
|
|
357786 |
- MSDState *s = USB_STORAGE_DEV(dev);
|
|
|
357786 |
-
|
|
|
357786 |
- object_unref(OBJECT(&s->bus));
|
|
|
357786 |
-}
|
|
|
357786 |
-
|
|
|
357786 |
static void usb_msd_bot_realize(USBDevice *dev, Error **errp)
|
|
|
357786 |
{
|
|
|
357786 |
MSDState *s = USB_STORAGE_DEV(dev);
|
|
|
357786 |
@@ -716,7 +702,6 @@ static void usb_msd_class_storage_initfn(ObjectClass *klass, void *data)
|
|
|
357786 |
USBDeviceClass *uc = USB_DEVICE_CLASS(klass);
|
|
|
357786 |
|
|
|
357786 |
uc->realize = usb_msd_storage_realize;
|
|
|
357786 |
- uc->unrealize = usb_msd_unrealize_storage;
|
|
|
357786 |
dc->props = msd_properties;
|
|
|
357786 |
}
|
|
|
357786 |
|
|
|
357786 |
@@ -779,7 +764,6 @@ static void usb_msd_class_bot_initfn(ObjectClass *klass, void *data)
|
|
|
357786 |
USBDeviceClass *uc = USB_DEVICE_CLASS(klass);
|
|
|
357786 |
|
|
|
357786 |
uc->realize = usb_msd_bot_realize;
|
|
|
357786 |
- uc->unrealize = usb_msd_bot_unrealize;
|
|
|
357786 |
uc->attached_settable = true;
|
|
|
357786 |
}
|
|
|
357786 |
|
|
|
357786 |
diff --git a/hw/usb/dev-uas.c b/hw/usb/dev-uas.c
|
|
|
357786 |
index c218b53..eaf515d 100644
|
|
|
357786 |
--- a/hw/usb/dev-uas.c
|
|
|
357786 |
+++ b/hw/usb/dev-uas.c
|
|
|
357786 |
@@ -896,8 +896,6 @@ static void usb_uas_unrealize(USBDevice *dev, Error **errp)
|
|
|
357786 |
UASDevice *uas = USB_UAS(dev);
|
|
|
357786 |
|
|
|
357786 |
qemu_bh_delete(uas->status_bh);
|
|
|
357786 |
-
|
|
|
357786 |
- object_unref(OBJECT(&uas->bus));
|
|
|
357786 |
}
|
|
|
357786 |
|
|
|
357786 |
static void usb_uas_realize(USBDevice *dev, Error **errp)
|
|
|
357786 |
--
|
|
|
357786 |
1.8.3.1
|
|
|
357786 |
|