From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zml3V-0000Ux-1A for qemu-devel@nongnu.org; Thu, 15 Oct 2015 12:07:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zml3P-0001UD-Mj for qemu-devel@nongnu.org; Thu, 15 Oct 2015 12:07:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zml3P-0001T7-Hl for qemu-devel@nongnu.org; Thu, 15 Oct 2015 12:06:55 -0400 Date: Thu, 15 Oct 2015 12:06:51 -0400 From: Luiz Capitulino Message-ID: <20151015120651.249f46d2@redhat.com> In-Reply-To: <1444918537-18107-1-git-send-email-armbru@redhat.com> References: <1444918537-18107-1-git-send-email-armbru@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 0/6] qobject: Make conversion from QObject * accept null List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: qemu-devel@nongnu.org, mdroth@linux.vnet.ibm.com On Thu, 15 Oct 2015 16:15:31 +0200 Markus Armbruster wrote: > The qobject_to_FOO() crash on null, which is a trap for the unwary. > Return null instead, and simplify a few callers. > > Throw in a patch to drop QObject_HEAD. > > Luiz, I'm happy to take this through my tree, since got a QMP series > based on it (to be posted shortly). Please do. Reviewed-by: Luiz Capitulino Btw, what do you think about this patch? :) diff --git a/MAINTAINERS b/MAINTAINERS index 9bd2b8f..aa03f3d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1010,7 +1010,7 @@ F: qemu-timer.c F: vl.c Human Monitor (HMP) -M: Luiz Capitulino +M: Markus Armbruster S: Maintained F: monitor.c F: hmp.c @@ -1073,7 +1073,7 @@ F: qapi/*.json T: git git://repo.or.cz/qemu/armbru.git qapi-next QObject -M: Luiz Capitulino +M: Markus Armbruster S: Maintained F: qobject/ F: include/qapi/qmp/