qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 09/12] virtio-balloon: fix virtio-balloon chi


From: Cornelia Huck
Subject: Re: [Qemu-devel] [PATCH v2 09/12] virtio-balloon: fix virtio-balloon child refcount in transports
Date: Tue, 30 Sep 2014 10:52:07 +0200

On Tue, 30 Sep 2014 14:10:35 +0800
<address@hidden> wrote:

> From: Gonglei <address@hidden>
> 
> 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-balloon child is not finalized!
> 
> Drop our reference after the child property has been added to the
> parent.
> 
> Signed-off-by: Gonglei <address@hidden>
> ---
>  hw/s390x/virtio-ccw.c  | 2 +-
>  hw/virtio/virtio-pci.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Cornelia Huck <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]