Received: from eggs.gnu.org ([2001:4830:134:3::10]:56041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WheO3-0005FI-2a for qemu-devel@nongnu.org; Tue, 06 May 2014 08:22:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WheNw-0007Kl-Tz for qemu-devel@nongnu.org; Tue, 06 May 2014 08:22:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WheNw-0007Kg-My for qemu-devel@nongnu.org; Tue, 06 May 2014 08:22:12 -0400 From: Markus Armbruster References: <1399034675-17844-1-git-send-email-armbru@redhat.com> <1399034675-17844-11-git-send-email-armbru@redhat.com> <5367FB03.8040609@redhat.com> Date: Tue, 06 May 2014 14:22:04 +0200 In-Reply-To: <5367FB03.8040609@redhat.com> (Eric Blake's message of "Mon, 05 May 2014 14:56:35 -0600") Message-ID: <87tx93t7v7.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 10/13] hw: Don't call visit_end_struct() after visit_start_struct() fails List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org, mdroth@linux.vnet.ibm.com, lcapitulino@redhat.com, pbonzini@redhat.com, akong@redhat.com, vilanova@ac.upc.edu Eric Blake writes: > On 05/02/2014 06:44 AM, Markus Armbruster wrote: >> When visit_start_struct() succeeds, visit_end_struct() must not be > > s/succeeds/fails/ (this really confused me on my first read, until I saw > the code and the subject line and determined the typo) D'oh! Will fix both here an in 10/13/ >> 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 >> --- >> hw/timer/mc146818rtc.c | 23 +++++++++++++++-------- >> hw/virtio/virtio-balloon.c | 25 +++++++++++++++++++------ >> 2 files changed, 34 insertions(+), 14 deletions(-) > > With commit message fixed, > > Reviewed-by: Eric Blake Thanks!