From patchwork Sun Jun 28 21:42:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 191986 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp2369858ilg; Sun, 28 Jun 2020 14:43:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4hvTVV5vsCbbbl3WYqkWa2Ygbv5hhUA5WhBYZcvyITlzZyo4dfrRtTNtVhX9YXCAVrwYF X-Received: by 2002:a5b:f0b:: with SMTP id x11mr20878519ybr.342.1593380596373; Sun, 28 Jun 2020 14:43:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593380596; cv=none; d=google.com; s=arc-20160816; b=pF2ILF+7wBJg/XGit2w8XkJP9lGsjfs46yISudUtDutyMzk/WDH8wpRj3L8yzdbRn6 xiKx38JBnF2jZQ9FIedpkLvHkY2BmyiCLjEtXxzhd4MTKRxbOQot4hz9wnXZc99sFDtH n5fMih0Fta5x0VN0bN8tpcmDEwdRcs6CjqS6IuI0U0oLMU1qvazTrST+of6EWJEtjGZY y0QXsixbG1xsaoNxXC3g9ptacAo2/wernPQS+KC9PP3gjY8iPFDIDWfUufE3ldMOmuv7 Y1uzDIjX3XESwo6oK5rJi5qYDT29Y1RAQb1j3+hFHxayZhM0FLHR7CsfWtJy1ignQVWM iw3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=0L5wQryvAxZg2uQOIJc+wY6esS/MPxiWmAjOVxgL35o=; b=KXfSoYpDq8AFJdhhj9UK/NE1MZ0JoZIoHZjQ3rum+V84bUg3N8P49mVWe0ZkIKjDI1 ZX/HU0xhehpBIDNLI/W9HGyh/NEZO7OTkJD8YvFM2A/wS+kp5zQjUWHLzIHJwQUolwr0 mk0iSjiF8R8hDykfyVFvlLEGU90LsIuGU6CxsiC+UHKBAQohWMRrcNnufz3BfS6xU4Hm ExRL2v364wAZAPdU3z0uVIKmxzRq2cs32Wi3DygwJXsfEV8u+9BQ5wBVQEWts4JmuBT3 7/r6kN9uICS0SzZOr6aXJsxVbOPch2uFc0UX3GKv0njYkNwCK4+GG3F6D0kKWrA1X1zD jWXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=VdGIgsvZ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id x17si32225672ybm.189.2020.06.28.14.43.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 28 Jun 2020 14:43:16 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=VdGIgsvZ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:58286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jpf51-0008Eh-S6 for patch@linaro.org; Sun, 28 Jun 2020 17:43:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpf4P-0008Dl-A7 for qemu-devel@nongnu.org; Sun, 28 Jun 2020 17:42:37 -0400 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:44182) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jpf4N-00072O-1v for qemu-devel@nongnu.org; Sun, 28 Jun 2020 17:42:37 -0400 Received: by mail-wr1-x444.google.com with SMTP id b6so14639250wrs.11 for ; Sun, 28 Jun 2020 14:42:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0L5wQryvAxZg2uQOIJc+wY6esS/MPxiWmAjOVxgL35o=; b=VdGIgsvZYEvdI6unwaENYbt63e2u2rDQs9AQP4C8wCtXuc9jPhE1KEidMfb7tGsJsV cdY6pMoU1Q1WsDyVXnJUGiuj+lRhlDUW8C/C7u7ZjiY1jez/naScgBn+gWxqYYEfOUDp PULu9t8zZajuRG+KMdTcyF2TW9uiKLOgOnh7RE9acXp04bcCvAB2P/UDnmziDcodMpC4 xXsgm/WA+A1rhJKFrXzj3KqMxQ6ZChnTgycWlGQLgoA5DQG3vDFUZcWjENo2vxE0aN5I jHQ2cMhJAxkgD+SKEvtXIkUS5ingtloY9KfKLuwOk+919/14SRDH0loP42HCx2gcbOka WtAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0L5wQryvAxZg2uQOIJc+wY6esS/MPxiWmAjOVxgL35o=; b=MMxssg3IzyTjeeq8ufophNDizVJJdQ9LQtSW+JM7mB865MS6FfCMrNnpPXkBYKA39W AZJftmlIKUrlkl8huWdwqMfX57oLBAm/CFXDMXgEefow6H2wjr+kD37jGq7fsIex15x6 ipi5yjUU+RhRI1QS21x/a32WmCHWx0Sk4pj33nNQdxKZvZNg6FCDS3Rwpfvnv81/5cEs OaPtY1QWKC7pqydjFQiFsv0+BCisXU7zDM7TB24pnyhjQ1tCdhDRmRKhJJxpsuYy1EYw UCC+9cc3bsG8f5fFF7iCSWU6YrVvzjF3SSZ/gDFSj15HhLipg+5xk56mDulycq7JPsyM IFEQ== X-Gm-Message-State: AOAM530CTXjJzWMst+v3rDPYAhQYRYdhLvusPrhvbHhGuKxmpb/ebPwV zAGAWKDKA5Qz5dyOCRcQrZ0HtQ== X-Received: by 2002:adf:f984:: with SMTP id f4mr14088274wrr.221.1593380552472; Sun, 28 Jun 2020 14:42:32 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id t16sm26300948wru.9.2020.06.28.14.42.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jun 2020 14:42:31 -0700 (PDT) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH 0/2] hw/arm/palm.c: Fix Coverity issue CID 1421944 Date: Sun, 28 Jun 2020 22:42:28 +0100 Message-Id: <20200628214230.2592-1-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::444; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x444.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" As for spitz and tosa, fix the Coverity issue CID 1421944 which points out that memory returned from qemu_allocate_irqs() is leaked by encapsulating the GPIO handling into a simple device. As with the other series, detabify the file first. thanks -- PMM Peter Maydell (2): hw/arm/palm.c: Detabify hw/arm/palm.c: Encapsulate misc GPIO handling in a device hw/arm/palm.c | 111 ++++++++++++++++++++++++++++++++++---------------- 1 file changed, 77 insertions(+), 34 deletions(-) -- 2.20.1