qemu-irix/hw
Gonglei f06c87b119 virtio/vhost-scsi: fix virtio-scsi/vhost-scsi child refcount in transports
object_initialize() leaves the object with a refcount of 1.
object_property_add_child() adds its own reference which is dropped
again when the property is deleted.

The upshot of this is that we always have a refcount >= 1.  Upon hot
unplug the virtio-scsi/vhost-scsi child is not finalized!

Drop our reference after the child property has been added to the
parent.

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 1312f12bcc)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2015-01-06 16:02:13 -06:00
..
9pfs virtio-9p: use virtio wrappers to access headers 2014-06-29 19:39:43 +03:00
acpi pcihp: fix possible array out of bounds 2014-09-08 11:23:05 -05:00
alpha
arm hw/arm/virt: fix pl011 and pl031 irq flags 2014-12-24 16:10:19 -06:00
audio
block virtio-blk: fix reference a pointer which might be freed 2014-09-08 11:23:04 -05:00
bt
char cadence_uart: check for serial backend before using it. 2014-07-17 16:36:17 +01:00
core qdev: Add cleanup logic in device_set_realized() to avoid resource leak 2014-12-24 15:36:22 -06:00
cpu
cris
display vbe: rework sanity checks 2014-09-10 09:30:58 -05:00
dma hw: Fix qemu_allocate_irqs() leaks 2014-06-30 21:13:30 +02:00
gpio
i2c
i386 smbios: Fix assertion on socket count calculation 2015-01-06 15:58:49 -06:00
ide ide: only constrain read/write requests to drive size, not other types 2014-08-26 16:58:56 -05:00
input input: fix jumpy mouse cursor with USB mouse emulation 2014-07-01 13:26:37 +02:00
intc xics: Implement xics_ics_free() 2014-06-27 13:48:26 +02:00
ipack irq: Allocate IRQs individually 2014-07-01 04:02:53 +02:00
isa
lm32
m68k
mem pc-dimm: Don't check dimm->node when there is non-NUMA config 2015-01-06 15:49:49 -06:00
microblaze
mips mips_malta: Catch kernels linked at wrong address 2014-07-09 18:17:08 +02:00
misc ivshmem: Fix fd leak on error 2015-01-06 15:43:56 -06:00
moxie hw/moxie/moxiesim.c: Remove unused moxie_intc_create() 2014-06-24 20:01:24 +04:00
net vhost-user: fix VIRTIO_NET_F_MRG_RXBUF negotiation 2015-01-05 20:22:59 -06:00
nvram spapr: Fix RTAS token numbers 2014-06-27 13:48:22 +02:00
openrisc
pci pci: Use bus master address space for delivering MSI/MSI-X messages 2014-12-24 16:08:15 -06:00
pci-bridge
pci-host prep: Remove PCI memory hack related to OpenHack'Ware 2014-07-07 16:46:35 +02:00
pcmcia hw: Fix qemu_allocate_irqs() leaks 2014-06-30 21:13:30 +02:00
ppc spapr_pci: map the MSI window in each PHB 2014-12-24 16:08:16 -06:00
s390x virtio/vhost-scsi: fix virtio-scsi/vhost-scsi child refcount in transports 2015-01-06 16:02:13 -06:00
scsi vhost-scsi: use virtio_ldl_p 2015-01-06 16:00:06 -06:00
sd hw: Fix qemu_allocate_irqs() leaks 2014-06-30 21:13:30 +02:00
sh4 hw: Fix qemu_allocate_irqs() leaks 2014-06-30 21:13:30 +02:00
sparc
sparc64
ssi
timer mc146818rtc: register the clock reset notifier on the right clock 2014-07-10 17:06:33 +02:00
tpm
unicore32
usb xhci PCIe endpoint migration compatibility fix 2014-12-24 15:45:02 -06:00
virtio virtio/vhost-scsi: fix virtio-scsi/vhost-scsi child refcount in transports 2015-01-06 16:02:13 -06:00
watchdog watchdog: fix deadlock with -watchdog-action pause 2014-07-09 18:17:08 +02:00
xen xen_backend: introduce xenstore_read_uint64 and xenstore_read_fe_uint64 2014-07-07 10:37:40 +00:00
xenpv
xtensa hw/xtensa/xtfpga: implement initrd loading 2014-06-29 02:32:42 +04:00
Makefile.objs