From patchwork Tue Oct 6 11:16:52 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark McLoughlin X-Patchwork-Id: 35083 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 4C065B7BB0 for ; Tue, 6 Oct 2009 22:22:30 +1100 (EST) Received: from localhost ([127.0.0.1]:55838 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mv87f-0008IC-Lg for incoming@patchwork.ozlabs.org; Tue, 06 Oct 2009 07:22:27 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mv84J-0006st-5M for qemu-devel@nongnu.org; Tue, 06 Oct 2009 07:18:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mv84D-0006p5-0u for qemu-devel@nongnu.org; Tue, 06 Oct 2009 07:18:57 -0400 Received: from [199.232.76.173] (port=40395 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mv84C-0006p1-L8 for qemu-devel@nongnu.org; Tue, 06 Oct 2009 07:18:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54249) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mv84C-0007rk-9l for qemu-devel@nongnu.org; Tue, 06 Oct 2009 07:18:52 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n96BIpTb008443 for ; Tue, 6 Oct 2009 07:18:51 -0400 Received: from blaa.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n96BIoiW018541; Tue, 6 Oct 2009 07:18:51 -0400 Received: by blaa.localdomain (Postfix, from userid 500) id DCF435A3C; Tue, 6 Oct 2009 12:17:17 +0100 (IST) From: Mark McLoughlin To: qemu-devel@nongnu.org Date: Tue, 6 Oct 2009 12:16:52 +0100 Message-Id: <1254827836-11021-3-git-send-email-markmc@redhat.com> In-Reply-To: <1254827783.2720.42.camel@blaa> References: <1254827783.2720.42.camel@blaa> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: Mark McLoughlin Subject: [Qemu-devel] [PATCH] Don't assign a static string to NICInfo::model X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Mark McLoughlin --- vl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index be0776f..95868e7 100644 --- a/vl.c +++ b/vl.c @@ -2597,7 +2597,7 @@ static int usb_device_add(const char *devname, int is_hotplug) if (net_client_init(NULL, "nic", p) < 0) return -1; - nd_table[nic].model = "usb"; + nd_table[nic].model = qemu_strdup("usb"); dev = usb_net_init(&nd_table[nic]); } else if (!strcmp(devname, "bt") || strstart(devname, "bt:", &p)) { dev = usb_bt_init(devname[2] ? hci_init(p) :