aboutsummaryrefslogtreecommitdiff
path: root/qom
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2016-01-28 12:22:35 -0200
committerEduardo Habkost <ehabkost@redhat.com>2016-06-17 10:42:21 -0300
commitf9a8b5530d438f836f9697639814f585aaec554d (patch)
tree22d2d7b648d2fc15f4848e486b8a340f170edaa2 /qom
parent4acc8fdfd315f7ee474bea28fcbcc4dca9717d13 (diff)
downloadqemu-f9a8b5530d438f836f9697639814f585aaec554d.zip
qemu-f9a8b5530d438f836f9697639814f585aaec554d.tar.gz
qemu-f9a8b5530d438f836f9697639814f585aaec554d.tar.bz2
qdev: Use GList for global properties
If the same GlobalProperty struct is registered twice, the list entry gets corrupted, making tqe_next points to itself, and qdev_prop_set_globals() gets stuck in a loop. The bug can be easily reproduced by running: $ qemu-system-x86_64 -rtc-td-hack -rtc-td-hack Change global_props to use GList instead of queue.h, making the code simpler and able to deal with properties being registered twice. Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'qom')
0 files changed, 0 insertions, 0 deletions