commit | b2d4b3f7b8c8ad0519c4705a3b850446068e6946 | [log] [tgz] |
---|---|---|
author | Anthony Liguori <aliguori@us.ibm.com> | Sun Feb 12 11:36:24 2012 -0600 |
committer | Anthony Liguori <aliguori@us.ibm.com> | Wed Feb 15 09:39:21 2012 -0600 |
tree | b82818d644b8c0813e033de422b4d4568b588dc3 | |
parent | 83f7d43a9ef70b1b91e465173e18c845420e931e [diff] |
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>