OSDN Git Service

qdev: add reference count to a device for the BusChild
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Jan 2013 13:12:32 +0000 (14:12 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 1 Feb 2013 21:53:10 +0000 (15:53 -0600)
commit9d127820ebbdc76592e3922cbbe803533455f9a2
treeca86daf8c4ea33e7b37ebc64be584e652e210fb0
parent6c232d2ffb7cf60e9fdf5dc17c5d5f7fe6d1ca64
qdev: add reference count to a device for the BusChild

Each device has a reference through the BusChild.  This reference
was not accounted for, add it now.

Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/qdev.c