]> git.proxmox.com Git - qemu.git/commit - qdev-monitor.c
device_add: don't add a /peripheral link until init is complete
authorAnthony Liguori <aliguori@us.ibm.com>
Sun, 12 Feb 2012 17:36:24 +0000 (11:36 -0600)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 15 Feb 2012 15:39:21 +0000 (09:39 -0600)
commitb2d4b3f7b8c8ad0519c4705a3b850446068e6946
treeb82818d644b8c0813e033de422b4d4568b588dc3
parent83f7d43a9ef70b1b91e465173e18c845420e931e
device_add: don't add a /peripheral link until init is complete

Otherwise we end up with a dangling reference which causes qdev_free() to fail.

Reported-by: Michael Tsirkin <mst@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/qdev-monitor.c