Message ID | 20171006235023.11952-53-f4bug@amsat.org |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> 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=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="iaqz5SlR"; 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 3y86jv5gxhz9t4r for <incoming@patchwork.ozlabs.org>; Sat, 7 Oct 2017 11:25:55 +1100 (AEDT) Received: from localhost ([::1]:47722 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1e0cwD-0003RC-Fc for incoming@patchwork.ozlabs.org; Fri, 06 Oct 2017 20:25:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>) id 1e0cQz-0000r3-5Z for qemu-devel@nongnu.org; Fri, 06 Oct 2017 19:53:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>) id 1e0cQw-0006fP-4F for qemu-devel@nongnu.org; Fri, 06 Oct 2017 19:53:37 -0400 Received: from mail-qk0-x244.google.com ([2607:f8b0:400d:c09::244]:33099) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>) id 1e0cQv-0006fD-W9; Fri, 06 Oct 2017 19:53:34 -0400 Received: by mail-qk0-x244.google.com with SMTP id z12so9700654qkb.0; Fri, 06 Oct 2017 16:53:33 -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=K11BF4s8VQOqU6nEorWyCTrelnBi8QPU65wJU5KBOvQ=; b=iaqz5SlRs2WeBmN3/1CEh38Cll16nB1xATBjYxS/1uKy+OiTMFIuM2WJkNIQxXKLJR ZIN4j5E2bNZCHiTn6bSTdLtuCJ5Y71LKwdhMErVEOTiLnn1IwrWZXDSEnJWRF+SyUFz0 en6/LCQvt08ML+ce1qbEn+4DTi5hw4zt+RsqeDs0MZWLGSNEGWUTGM3jZOKHIMXK+3+8 tT/3FEL1dJixGgjOoVDLZ906gS0u2SPcYCETyhsGwIl7B7e7gUjwG+wObBaCd7bYbnd0 NC40TXs4ApTsWA+RPXo+pYw+e2yFNF/qKyYEPoSpoYtmUo5qGQgTXYkX1puPsC42Gajf pdCg== 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=K11BF4s8VQOqU6nEorWyCTrelnBi8QPU65wJU5KBOvQ=; b=Ch/jlhXD8F22dd3hQP+RneVxRQ/7RodELMSPxTDCOmII1VQeyIjGAoS7Lq+le6YOyw s0g0uu8DZKX4mygxPrPHV5x5BIn2FTg1SiyCPDqBNXP8dhuIDy6KXwV2d520Nw4BpUMJ ngTrGmxAHcVh+wi+YOHdgxIU9ggDhuibe8G0jOXDV8E2B2pSj+n8zKS1UC3KlrRS3kE3 JH2qFw6HDpfk/PTGlV5bw4rwKB0ZmIVYtIQdxKypxIfh9WqFcwlka5uHrTSGgrjoCer9 0sb971LLiNB+/xcf8bs/eT+09mxjOD3wa9MjVZOxRXmKmuToZYILAWaRQfIAJOlLmt6m lsLQ== X-Gm-Message-State: AMCzsaUe4FplMtOIHiam4Utdc/KAbUmivvBMsWH0weQ5vkBQAJKpbS24 3xHpuq1xjOYOJHhEDz2AAyU= X-Google-Smtp-Source: AOwi7QCVN20tIASnmxLG1u0cgLNgyEj8L9oOsss9VN33Wu+viT4+9h780aY53U6Wq1YTm9Wp6u08VA== X-Received: by 10.55.25.85 with SMTP id k82mr624058qkh.223.1507334013457; Fri, 06 Oct 2017 16:53:33 -0700 (PDT) Received: from yoga.lan ([181.93.89.178]) by smtp.gmail.com with ESMTPSA id g1sm1705226qta.95.2017.10.06.16.53.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Oct 2017 16:53:32 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org> To: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= <marcandre.lureau@gmail.com>, Markus Armbruster <armbru@redhat.com>, Eric Blake <eblake@redhat.com>, Peter Chubb <peter.chubb@nicta.com.au> Date: Fri, 6 Oct 2017 20:49:47 -0300 Message-Id: <20171006235023.11952-53-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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::244 Subject: [Qemu-devel] [PATCH 52/88] i.MX31: use g_new() family of functions X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Kevin Wolf <kwolf@redhat.com>, =?utf-8?q?Marc-Andr=C3=A9_Lureau?= <marcandre.lureau@redhat.com>, qemu trival <qemu-trivial@nongnu.org>, qemu-devel@nongnu.org, qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
use g_new() family of functions
|
expand
|
diff --git a/hw/misc/imx6_src.c b/hw/misc/imx6_src.c index cfb08710fb..9342bce6de 100644 --- a/hw/misc/imx6_src.c +++ b/hw/misc/imx6_src.c @@ -149,7 +149,7 @@ static void imx6_defer_clear_reset_bit(int cpuid, return; } - ri = g_malloc(sizeof(struct SRCSCRResetInfo)); + ri = g_new(struct SRCSCRResetInfo, 1); ri->s = s; ri->reset_bit = reset_shift;