diff options
| author | Anthony Liguori <aliguori@us.ibm.com> | 2012-01-13 07:45:55 -0600 |
|---|---|---|
| committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-01-13 10:20:49 -0600 |
| commit | 024a6fbdb9d8cbc4d7f833b23db51c9d1004bc47 (patch) | |
| tree | eb591e7b73c900dca6ddbcbc5f1c877f873ac705 /hw/arm_timer.c | |
| parent | 607a2c72e52d6a7050c0eae1076b0b2976180d3e (diff) | |
| download | focaccia-qemu-024a6fbdb9d8cbc4d7f833b23db51c9d1004bc47.tar.gz focaccia-qemu-024a6fbdb9d8cbc4d7f833b23db51c9d1004bc47.zip | |
qdev: fix device_del by refactoring reference counting
Commit 8eb0283 broken device_del by having too overzealous reference counting checks. Move the reference count checks to qdev_free(), make sure to remove the parent link on free, and decrement the reference count on property removal. Reported-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/arm_timer.c')
0 files changed, 0 insertions, 0 deletions