Message ID | 1522918464-4586-5-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp6032124ljb; Thu, 5 Apr 2018 01:57:08 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+Symoxokj2p0PIFhgZigj2EPVes5IFmMij+uyWzFuyj89R+oaUdrHrvmY2AKcI2fQKxlv5 X-Received: by 10.28.1.197 with SMTP id 188mr9491910wmb.49.1522918628543; Thu, 05 Apr 2018 01:57:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522918628; cv=none; d=google.com; s=arc-20160816; b=r9k4Y0O9DRFTJwWPcc25gQq2IvuZfGqtBaPcFyXbgAG6oA6I4ogcM2CjrcWB+K4o1a 4Sr9w2a8vNEEk6f0sQpM8wlDl72ZUa+4SGpZqbzsD7IvYLpPLN1g+u/6r1gRsUYrzTQo vIvankewrNHnmfIOo6Nfn4Genxugpizlp9Z5m6DQ0xjrkQv24A3giyIoq9M4DBePa0GK B8t6uFewWJ92ui9yxHkUT7Vjcbx0vJXlKRB/aUgypTqGC4H8OvfS3TzLTDwtXhTQ6860 5AnXB+dlNcLrymj0ybeRaC6FMTfqu/fpSc92QGAwVpB+/PkqzJVUntZuTBn1aWwdQWQ+ uF9Q== 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:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=YH+CXk53//pSXIoL0VOSMdGNtiBwH3ClefVBe7Ogreg=; b=xZx91y09F/0BiefD2mXz9QLEFOOmY+1gT6a25Pf6HuMXIqU2Onid85oqMOBxVbdQ0H UfVLFC5gR9kxqVXlHfrdkeLCH3e8vMyR+cjLnUTg1y1ufpi8y+gRZ0Y/aHhU00JBk1mi No4OZo9Yxjez51df9dDB3UlbyljV4RSDX1MwHG27NgbkAxPpNK3n/WWSa9mF+z2UXgbg 95rVZ16RlBKBQGeR7QryeGFXBiRwE9eZuLpEWWXGA+NuJsDTSl9HAuqRAKr8BsJWsLPi nainG3eGgQFvh7mrkT/lJGkf8TflrG2Axczt3d29dp98gczSwlf42lJ5GEpvPvYzyecC fBlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=TKVBj4RW; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: <dev-bounces@dpdk.org> Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id p1si5280543wra.527.2018.04.05.01.57.08; Thu, 05 Apr 2018 01:57:08 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=TKVBj4RW; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DF1321CA15; Thu, 5 Apr 2018 10:56:31 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0066.outbound.protection.outlook.com [104.47.0.66]) by dpdk.org (Postfix) with ESMTP id 4D0AB1C9F6 for <dev@dpdk.org>; Thu, 5 Apr 2018 10:56:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=YH+CXk53//pSXIoL0VOSMdGNtiBwH3ClefVBe7Ogreg=; b=TKVBj4RW2KaPe3HiNPvpq5hN9X0RuFbPQ+jac8K2qO+oglDyJ7k4aATWESqPPaTHqR8H51IiCMqH4y1t7W9/y8maHCzJKRl24WEdGLUeF50f2REsI1mE2ty3KjttpkY7jvadMWq6hE5HcbZB1F/jVeKy9XEkLuwSpgYouBOYQ1A= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by DB3PR04MB0762.eurprd04.prod.outlook.com (2a01:111:e400:9440::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.631.10; Thu, 5 Apr 2018 08:56:23 +0000 From: Hemant Agrawal <hemant.agrawal@nxp.com> To: ferruh.yigit@intel.com Cc: dev@dpdk.org, shreyansh.jain@nxp.com Date: Thu, 5 Apr 2018 14:24:21 +0530 Message-Id: <1522918464-4586-5-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522918464-4586-1-git-send-email-hemant.agrawal@nxp.com> References: <1522918464-4586-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR0101CA0043.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::29) To DB3PR04MB0762.eurprd04.prod.outlook.com (2a01:111:e400:9440::25) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 74b7866b-dcad-41f6-f88f-08d59ad31bff X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DB3PR04MB0762; X-Microsoft-Exchange-Diagnostics: 1; DB3PR04MB0762; 3:NXtl2CvwINKATZ1ufuxVnlCDVK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KfWt40gwuCCjAUjIv7SVpATklkUAuEWsz2mIB4OvW+PftG140ZnxS7hApvslQYCxZgbk/dbwUdMD0E+A45EuuTWghZpe0g0hDBOFHe7EyNGXegK2HW4hRKvUeT2pWQKlSsbrrbeDXNvxbdSmjVGhQxIt9RyY8QScQjSxJ/mnvxumkYRp42LyWQy+eFSWYBU17uWi0j8aUDTknmcvdjNmCwMYE+o6PaXOMi9kjMyjoXUzKtCp2IY6ES35VlXB+4OM0FbWSY5fjHKgub7qSmBoe0IRiM3pQD3X4r7bHoiJY4v8Li1SOlIv2p/ccaPOLUwvk7FBDwMghvHdhwqRv; 4:zOTFQffQcNLqgrmCsHRWUyF9+p3Unxtdo3nGSctk3zbbwbmuInZHZzamRYOnznNlgHF7SEjf3VR96X+q7RQ0HF800j9kgaNo2MZf/QcroQ4fRfhPoohweg8qd22WGKVEJIpk1D4xtcn2bkrWgzJoK+MSItrByOcjxQ1yXq7As+69xU0BznnSDFcQCu1bZF32ReibPcDJV5sJWmSsxJ+VdE/6ac9ELmGFGMRPO7iXGwhYXvj9vIU650U192toyr+CYVo3/Ficy8FraNQLgRDbODqkdbl0tPt1kfnBxCbQ6wrjYzXHAo3YqBh96md1D4Ll X-Microsoft-Antispam-PRVS: <DB3PR04MB076217C64F1231AC57D1BA5989BB0@DB3PR04MB0762.eurprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(3231221)(944501327)(52105095)(93006095)(93001095)(10201501046)(6055026)(6041310)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:DB3PR04MB0762; BCL:0; PCL:0; RULEID:; SRVR:DB3PR04MB0762; X-Forefront-PRVS: 06339BAE63 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(366004)(376002)(346002)(39860400002)(39380400002)(189003)(199004)(76176011)(81166006)(53936002)(2361001)(2351001)(6916009)(25786009)(7736002)(476003)(50226002)(86362001)(81156014)(486006)(97736004)(105586002)(26005)(6512007)(52116002)(3846002)(11346002)(8936002)(446003)(16526019)(106356001)(51416003)(8676002)(386003)(48376002)(6486002)(47776003)(66066001)(68736007)(5660300001)(956004)(55236004)(478600001)(36756003)(6506007)(2906002)(2616005)(5009440100003)(305945005)(4326008)(6116002)(50466002)(186003)(316002)(16586007)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR04MB0762; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB3PR04MB0762; 23:XHGYg0cRjRP78zfSO6TwId4uK0N4sf9bY+tLouG+v?= TlkGJ92EpZiAEjXSUheBG93Vq0MU7+SGfw0vxgLZr2eauoAymn6LowXqFD1gzNPOSXDenqrxZoG4DY4IwsNYjp5VoNJfIbP7I3pj8kZyE9z29o8Jfp9Fp+Gm7aQyo3MbMwzpfNav7K8ynmpIeUWVDoApkwu8gG3y3t+inZD+k6uRmxGIi/JElo3GtM2HPh9wSKhL8n5jKyyYLgTqEJIGjzvXNqST0jYBUVhq/6Xovn9O+dbyGKb7rjaJxnTZHSP4dGMghVnpRX6TeCe4xN24XXz7/xT2VzabZbW2oTDT+kW2FgUvbrazLbilDmK1MNqpU61a+PA31f6w5EuP7Lh0ly13xXGPAe2Bl1CYqHIdf1Psqk/x0x8YptOjCgqjepErGs9NmAAIp+sL3UU2KQkcjCAhosb4G+4YBmflMKUwrdL/+6BLe0DlZEV0eihhudlSKbyaz9sCGrbLNY7F39mTAIVcPaCbI5+WCqNOkjqOxKQxfPCCVgen2Vz6G27CW9GaJVpEAXHIykTtZ2DiE2L8Yb48j+VuOQkIfgjV7XHikGrJ+DnXpY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dbuD7+rdBSZ8e9188A9LFjh+JBTYOoBS1hlO0y6JBXTi/TrDK/V0ZzDByyWotm0XCrg74Ht7lgJDl13TQLn8uqrfqj+ySUN9oP+PVU5CPfkJzGi6m1zJL7Ve0ul9Ss1kFRr4NUDhjZObPmlFDR0QmF8sIucICcF7c+xywopVemgFaivRg1gED3RfyQLu3sYelIZKEXN/SDRhk5ha2aBVt8BcQYxorrxgSHJm/pjcQU2DctfLVOnVDjBbvAZ60nlKU7snhw7AlFOMCvEa/NhDmK25Bf2fBRCyBbm19bOWlYJuStRcjI0qiPQxwpQ==; 5:waKjIAGF698G4IdByWeeNAGSbiI5SCFPd+EmCbcLlwl2Wt3Fn5SJuYRmnoq1q6szUdIF4KgUASNRK4Y5rBrKknjSATxWuy3bKikRSFlZ4C0cmGxsHCG7Qi6tamkQC6/XuBKllRKtS0FzmpyPtHjxL0Q/en9wSgajjhU0Pcy4560=; 24:+SL6TFPizOvgXPLJM+iwhn6JCpd4vqkBzKhIRz/SFgBinJKGm3wFhUJrFPUPHCgwUHH9l4aRaxykppi4HE30s6pwy4dcR2/r3UCBIEm03uw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB3PR04MB0762; 7:aAdoV9qWu8V+XZMinRDUP+wxiRPD3Bx85yo0qZHXIlhGgRR4+Q+tKdZL62O8LEuAOyG1bFAPf8TUW3oE1y+4LEH9mUe26OZAWWMUKL19ZYPsOvDHdFSTwb+Mdhun9KS/1FsWZUNUGcLx5fnPtTnVCkrQ0ssagz60QWg08QI1vrmrm55IoWjfYxCjGhGa3RAkhyNMnmP9+rNG87tOT3fG0dikXNnkdlp3CpTcYRgBAZPVaRaUE2gcGHXCAj7BbIrZ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2018 08:56:23.1798 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 74b7866b-dcad-41f6-f88f-08d59ad31bff X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR04MB0762 Subject: [dpdk-dev] [PATCH 5/8] bus/dpaa: fix resource leak X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
[1/8] bus/dpaa: fix the resource leak issue
|
expand
|
On Thursday 05 April 2018 02:24 PM, Hemant Agrawal wrote: > Fixes: 1459585888b5 ("bus/dpaa: fix memory allocation during scan") > Coverity issue: 268337 > Cc: stable@dpdk.org > > Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> > --- Acked-By: Shreyansh Jain <shreyansh.jain@nxp.com>
diff --git a/drivers/bus/dpaa/base/fman/fman.c b/drivers/bus/dpaa/base/fman/fman.c index e6fd5f3..be91da4 100644 --- a/drivers/bus/dpaa/base/fman/fman.c +++ b/drivers/bus/dpaa/base/fman/fman.c @@ -442,6 +442,7 @@ fman_if_init(const struct device_node *dpa_node) if (!pool_node) { FMAN_ERR(-ENXIO, "%s: bad fsl,bman-buffer-pools\n", dname); + free(bpool); goto err; } pname = pool_node->full_name; @@ -449,6 +450,7 @@ fman_if_init(const struct device_node *dpa_node) prop = of_get_property(pool_node, "fsl,bpid", &proplen); if (!prop) { FMAN_ERR(-EINVAL, "%s: no fsl,bpid\n", pname); + free(bpool); goto err; } assert(proplen == sizeof(*prop));
Fixes: 1459585888b5 ("bus/dpaa: fix memory allocation during scan") Coverity issue: 268337 Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> --- drivers/bus/dpaa/base/fman/fman.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4