From patchwork Fri Oct 6 23:50:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 822871 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="fK3HQ90O"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3y87Qq69nRz9t5c for ; Sat, 7 Oct 2017 11:57:55 +1100 (AEDT) Received: from localhost ([::1]:47929 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0dRC-0006gj-15 for incoming@patchwork.ozlabs.org; Fri, 06 Oct 2017 20:57:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0cSs-0002nO-DM for qemu-devel@nongnu.org; Fri, 06 Oct 2017 19:55:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0cSq-000089-OC for qemu-devel@nongnu.org; Fri, 06 Oct 2017 19:55:34 -0400 Received: from mail-qk0-x242.google.com ([2607:f8b0:400d:c09::242]:38011) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e0cSq-00007l-JV; Fri, 06 Oct 2017 19:55:32 -0400 Received: by mail-qk0-x242.google.com with SMTP id 17so5921155qkq.5; Fri, 06 Oct 2017 16:55:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=j9cp+Fg3IAnoTZ4V34vSGc1owpDbeDPUDxiTyMLzb74=; b=fK3HQ90Oph8ujz1P9SxFObS07MK9fQoQFLtm3AkI7qVDVO3GAp06YkSTQRfdcZVHbB kKtteF2U1K2ZiW1c7uqvlwoTJDSgqQYgXqQirlrDgrbS5UQjg9Bpgu5QG0H1txLjSe3w 7rjYN9/m8GcoVtv3sBakzgyR8rwUOz4z7Fzt+iLZA6uVuy/BKFhdNLJxDyh46MwaoocR cxglq9jgOIDdoOgB0HGX2GywYFV0LzIZaZL2IRYGdnYkVnm8JLYtyj7Ca7e7MyNSRSfO VMbCsrzgjCvSNG4dP4qatSjfHJ0qOnQZJMYxFU+wjjL/HfRPc7vHQJTfYRCDLCjHNTte +76A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=j9cp+Fg3IAnoTZ4V34vSGc1owpDbeDPUDxiTyMLzb74=; b=i6Ff+97kX73cRHDFRijkVgpkpUbgXnKujR8LC38GrgUVLy8PujunUYrpfMC6lkQBMx 9I9DWbPbTUmkUfljOd1I/gZqhyzSN3Ea5Ys5ilklFQSQpgoeRw2MMaTUk0PPamsTCUY7 lybiF1yX3SSzkSpzSRijNW0bi56S2IQPvgcZcDaXtvn/mff6SmF92ebryi9pzCzd96yp vvjNbP0dfh+t11YShw6/crHH12EUWO45bKLskgoFwowE7kFy+LcP6r1qqh1aDbaNLEF7 5y3Gbay514rg6FBWguOqRanyLjmHkidyn6zSUxmx+kXYGWZVBUEauvu93El21KZPvQC7 8e6A== X-Gm-Message-State: AMCzsaXKwHzrqo0OQr8bpDacLzv0zSBbLnqqgw1Sof2X6XyV73LVcIrS esBbvaOclhNyJYm78/oF/OA= X-Google-Smtp-Source: AOwi7QDnnDJ8ULjraKNRJpW5ClTIuKIZ+01BvSidJJHBuwkh1urqUtSAUZN281j9KcoXepq49q+eaw== X-Received: by 10.55.195.11 with SMTP id a11mr670429qkj.222.1507334132058; Fri, 06 Oct 2017 16:55:32 -0700 (PDT) Received: from yoga.lan ([181.93.89.178]) by smtp.gmail.com with ESMTPSA id g1sm1705226qta.95.2017.10.06.16.55.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Oct 2017 16:55:31 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Markus Armbruster , Eric Blake , Gerd Hoffmann Date: Fri, 6 Oct 2017 20:50:20 -0300 Message-Id: <20171006235023.11952-86-f4bug@amsat.org> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171006235023.11952-1-f4bug@amsat.org> References: <20171006235023.11952-1-f4bug@amsat.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::242 Subject: [Qemu-devel] [PATCH 85/88] hw/usb: use g_new() family of functions X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , qemu trival , =?utf-8?q?Philippe_Mathieu-Dau?= =?utf-8?b?ZMOp?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Philippe Mathieu-Daudé --- hw/usb/hcd-ehci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c index 0134232627..34785923f3 100644 --- a/hw/usb/hcd-ehci.c +++ b/hw/usb/hcd-ehci.c @@ -545,7 +545,7 @@ static EHCIQueue *ehci_alloc_queue(EHCIState *ehci, uint32_t addr, int async) EHCIQueueHead *head = async ? &ehci->aqueues : &ehci->pqueues; EHCIQueue *q; - q = g_malloc0(sizeof(*q)); + q = g_new0(EHCIQueue, 1); q->ehci = ehci; q->qhaddr = addr; q->async = async;