From patchwork Mon Dec 12 20:18:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony Liguori X-Patchwork-Id: 130889 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id CDD9A1007D3 for ; Tue, 13 Dec 2011 09:01:00 +1100 (EST) Received: from localhost ([::1]:41749 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RaDvd-0005cm-Bv for incoming@patchwork.ozlabs.org; Mon, 12 Dec 2011 17:00:57 -0500 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 Received: from localhost6.localdomain6 (localhost.localdomain [127.0.0.1]) by localhost6.localdomain6 (8.14.4/8.14.4/Debian-2ubuntu1) with ESMTP id pBCKMhQd032570; Mon, 12 Dec 2011 14:22:43 -0600 Received: (from anthony@localhost) by localhost6.localdomain6 (8.14.4/8.14.4/Submit) id pBCKMfbE032569; Mon, 12 Dec 2011 14:22:41 -0600 From: Anthony Liguori To: qemu-devel@nongnu.org Date: Mon, 12 Dec 2011 14:18:15 -0600 Message-Id: <1323721273-32404-20-git-send-email-aliguori@us.ibm.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1323721273-32404-1-git-send-email-aliguori@us.ibm.com> References: <1323721273-32404-1-git-send-email-aliguori@us.ibm.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 70.123.132.139 Cc: Kevin Wolf , Peter Maydell , Anthony Liguori , Stefan Hajnoczi , Jan Kiszka , Markus Armbruster , Luiz Capitulino Subject: [Qemu-devel] [PATCH v3 019/197] bug fix spotted by paolo X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org --- 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;