]> git.proxmox.com Git - mirror_qemu.git/commit
hw: Don't call visit_end_struct() after visit_start_struct() fails
authorMarkus Armbruster <armbru@redhat.com>
Wed, 7 May 2014 07:53:52 +0000 (09:53 +0200)
committerLuiz Capitulino <lcapitulino@redhat.com>
Thu, 15 May 2014 18:00:46 +0000 (14:00 -0400)
commit2ddb16a95f7d4edab4022ef4707d926c0c28db8d
tree2338ad65b79959e16328482de841ee9feb7d2615
parentf9f3a5ecde4cb636d8eb43edc0d097bd364ffe75
hw: Don't call visit_end_struct() after visit_start_struct() fails

When visit_start_struct() fails, visit_end_struct() must not be
called.  rtc_get_date() and balloon_stats_all() call it anyway.  As
far as I can tell, they're only used with the string output visitor,
which doesn't care.  Fix them anyway.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
hw/timer/mc146818rtc.c
hw/virtio/virtio-balloon.c