diff options
author | Anthony Liguori | 2012-02-12 18:36:24 +0100 |
---|---|---|
committer | Anthony Liguori | 2012-02-15 16:39:21 +0100 |
commit | b2d4b3f7b8c8ad0519c4705a3b850446068e6946 (patch) | |
tree | b82818d644b8c0813e033de422b4d4568b588dc3 /hw/usb.c | |
parent | qom: Unify type registration (diff) | |
download | qemu-b2d4b3f7b8c8ad0519c4705a3b850446068e6946.tar.gz qemu-b2d4b3f7b8c8ad0519c4705a3b850446068e6946.tar.xz qemu-b2d4b3f7b8c8ad0519c4705a3b850446068e6946.zip |
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>
Diffstat (limited to 'hw/usb.c')
0 files changed, 0 insertions, 0 deletions