From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:42089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaCOh-0003BG-Ox for qemu-devel@nongnu.org; Mon, 12 Dec 2011 15:22:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RaCOg-0000ee-Uy for qemu-devel@nongnu.org; Mon, 12 Dec 2011 15:22:51 -0500 Received: from cpe-70-123-132-139.austin.res.rr.com ([70.123.132.139]:44539 helo=localhost6.localdomain6) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaCOg-0000ea-IN for qemu-devel@nongnu.org; Mon, 12 Dec 2011 15:22:50 -0500 From: Anthony Liguori Date: Mon, 12 Dec 2011 14:18:15 -0600 Message-Id: <1323721273-32404-20-git-send-email-aliguori@us.ibm.com> In-Reply-To: <1323721273-32404-1-git-send-email-aliguori@us.ibm.com> References: <1323721273-32404-1-git-send-email-aliguori@us.ibm.com> Subject: [Qemu-devel] [PATCH v3 019/197] bug fix spotted by paolo List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Peter Maydell , Anthony Liguori , Stefan Hajnoczi , Jan Kiszka , Markus Armbruster , Luiz Capitulino --- hw/qdev.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index 1102efd..4004860 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -1228,7 +1228,7 @@ void qdev_property_add_child(DeviceState *dev, const char *name, qdev_property_add(dev, name, type, qdev_get_child_property, NULL, NULL, child, errp); - qdev_ref(dev); + qdev_ref(child); g_assert(child->parent == NULL); child->parent = dev; -- 1.7.4.1