Message ID | 1523269371-28799-1-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp108775ljb; Mon, 9 Apr 2018 03:25:53 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+ppJRxINnHq97mrM23dA6MY0nImyzRp5EOIiG/c8Aorpaay2Z7UUFO5sKuSPw1uSV7gMGp X-Received: by 10.223.188.135 with SMTP id g7mr27658201wrh.69.1523269553101; Mon, 09 Apr 2018 03:25:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523269553; cv=none; d=google.com; s=arc-20160816; b=ymDpYWMZmrNXwDpTkGPxKokjlE1ZEBems7/JIR9oCTnom1DFH7FVqePYiEXYTKWh1c 8eqTj0yjbuUheSRY/fOpYMZ9LrQITRI155TX2pHzo0tTW3qm1FLwCwIgyFy/LB3fV7Qb aLchntEDtv8hVmOuTIXThZzboLZ34ie4cKyXkmvJsEEtLyStflm2pm2/3/P0mjDbeu5a esyiEixlbl+VzNkJtebWXTOvzDbCVYbALGbzA22db6XplztYMV08reidku6x65Qsg+OL 8MgKyJ41fQoQKzq+a+lhR1N9wszHv7gW/Hq5ZrOywaZOu+6pBDtI+R57tORiFp2vwTXF /uyw== 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=qk+ZMbwELtwuxBZtYuJ2Fy6g0MYTZQih/wf/Qzx32hI=; b=CxZFFuJ/bWBonOZsS+AZJRAKZJ6stoMVzfELhcyXRQj8j9ISPY10vkKrwbFv2n6vDB /ZgdmFskdt2SDzd0ijs+lSVlhwFCACmmyNmBGeX0M6YXQXDpJ3JDu9T2TdaoaUFd3KO0 xO2vSOzsQJQZsAnHhz6nfiIL4YVM6O4hH9IrKKNGdc4saq8+gYsAqi83g6Sc7VAWIjtG 9jN/wk2wX3QLt7IS1Va6lwUwJnRZXgzIw10SqfDourK/AhFDL38Xxf9I6fDo8SdXYRwt yrijqhB730HmWSaI1oYxXkiJQr3KlsHRo4afX2fAY/JRSXVR6ktGW0AV7Ajq2zyW7A4t 7s9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=hJCU/k4c; 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 b65si211764wmd.186.2018.04.09.03.25.52; Mon, 09 Apr 2018 03:25:53 -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=hJCU/k4c; 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 B6F241B7BA; Mon, 9 Apr 2018 12:25:52 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0067.outbound.protection.outlook.com [104.47.1.67]) by dpdk.org (Postfix) with ESMTP id 61E1E1B781; Mon, 9 Apr 2018 12:25:51 +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=qk+ZMbwELtwuxBZtYuJ2Fy6g0MYTZQih/wf/Qzx32hI=; b=hJCU/k4cO3u1JHjcSh+FY6IIE79JipMr9vSSniqmEjk6F0rfK6m6uf9Fx45iRAdSkoBDBtOEU8Asy4jcrK9to+U0qDONf4YlTtmI0lo69Uo/VfoiEkesZ3YpT8ImpInm+9TpacSEORf85KVM5rdtcycjmmmH82lTZJ8yv42nSlU= 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 AM2PR04MB0756.eurprd04.prod.outlook.com (2a01:111:e400:8411::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.653.12; Mon, 9 Apr 2018 10:25:48 +0000 From: Hemant Agrawal <hemant.agrawal@nxp.com> To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Sunil Kumar Kori <sunil.kori@nxp.com>, stable@dpdk.org Date: Mon, 9 Apr 2018 15:52:44 +0530 Message-Id: <1523269371-28799-1-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: PN1PR0101CA0067.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:d::29) To AM2PR04MB0756.eurprd04.prod.outlook.com (2a01:111:e400:8411::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 5fb09e21-4388-4fa1-e0ff-08d59e0443b0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0756; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0756; 3:V613vZZoZiHqe9Y5yQqwFTm+l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wgfw1ig6NoNG73kMjAGCJtU5+O1sev8GrI+1bh6FJooR1dKfpWPnB4oVzalwJ0uylexeAK3mfeDLKPklzdQS5f4cdwpy2q4mR/mZJBC9GdY8ib9M2c27MKQr3AFOPh7tRSYWTR8RC3UkkCNxmatrB4nCrHEnjX9fM8ZSMw7J7tE/vwzSLL5hbKpXgzOVU5cy9O+YEmASOJ0NczEkLl8NfqE+BKD7HwJSJ8VDRpKWlUqcF/bs0WVUFuBr0eooVkqt/x61JImio5NktO3BZ8pjLGC6mEYtHm0fRCgkNFNgGW6Ttrajh8alF/Y7Bj72NAaPEDSRf/Shp3AAuQ; 4:Gemxm9wFoKvbqL5/JhjV4av3hX2LRPsxkLsZccpPOHT776bs1WwVEEKfdnDboZYoDnL8wlONno/N5WVOqeyr3Q9AduTqlwLeY3C/NBAQSR+LggHqY8SZRb7F6vnE9PHf1AYR7Rlg6nLTJ8jVC8M531P7LS5JZNA/lFBcqqGUEy38hd/AC3Lz9Spx4cyaBMRGKFqN5v2RnedE8Bl9cMh1ww3UcvcQBSjl6Wd/lSZr5DGQL7/fhEI53SiDaz6J7CIEX+Jsy11krXQxluhrGlcE2W8cZg5WYchmTMXniR5i1u51+MSoAeLmR3DEi8nuy9FCvp5LAFnqDnFogZgUDaooDIr+ad/MjIluCphdykRlHYo= X-Microsoft-Antispam-PRVS: <AM2PR04MB07568DC23A61EF14987BD8C289BF0@AM2PR04MB0756.eurprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(3231221)(944501327)(52105095)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:AM2PR04MB0756; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0756; X-Forefront-PRVS: 0637FCE711 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(346002)(39380400002)(39860400002)(396003)(366004)(199004)(189003)(36756003)(48376002)(50466002)(8936002)(6486002)(6916009)(81156014)(50226002)(6666003)(81166006)(8676002)(106356001)(68736007)(316002)(16526019)(3846002)(16586007)(2351001)(2361001)(47776003)(2616005)(26005)(6506007)(386003)(59450400001)(55236004)(66066001)(6116002)(305945005)(97736004)(76176011)(7736002)(956004)(52116002)(51416003)(476003)(486006)(53936002)(186003)(2906002)(575784001)(86362001)(4326008)(6512007)(25786009)(446003)(5660300001)(478600001)(105586002)(5009440100003)(11346002)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0756; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0756; 23:GTFgZdI6Ty6p4Q3G5p8aHf6FlhoA58ooImdSnBEih?= QG1RCP9V+UmRjsrq+GYekYOy3TR2+3vAUydbABQoYr6A+HVvYzl8ClnR3dSkCyYTuJ/4YwBPp9I7fm1xlgPAKYc+k2PXte80dkcjtCXoQodZfZjBKqsm5zm+xnwdBCiiHhYFUBhcfvnGZIhcoMguMYtUh4DPqLMhhu+41SEiwToJ5aoVhBeVQtA1Zmbbzn4os9H8MBqFfreWHri4OQJkm+fyDymkIeq1lYReiu57TKo4RAa4eskbfPfDXL3861mwnAEocwCzbxN3wegpI1jBNdeZb4Cvl7pYinypC1KkrofXOBT4wR2giPLUlIm5pb/C65pcc8oEf6+UXhiAjZ/2BQHtW8/bJh8Qv3hY0bhiTQx59jMgTSbORH+AjFWLuYT75vgRXqY6krjjba4vGEXumsL56ojBqdEL2Xv5A1pExIb/5XYmWBe6JO+0bMt+d19l6UcuYas8jpx+qQQz9toPKlzDiXYziQtqm58NzW06WrfOFL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PujHpp4sdeFG/fdj X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2018 10:25:48.6141 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5fb09e21-4388-4fa1-e0ff-08d59e0443b0 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0756 Subject: [dpdk-dev] [PATCH v2 1/8] bus/dpaa: fix the resource leak issue 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 |
[v2,1/8] bus/dpaa: fix the resource leak issue
|
expand
|
09/04/2018 12:22, Hemant Agrawal: > From: Sunil Kumar Kori <sunil.kori@nxp.com> > > Fixes: 9d32ef0f5d61 ("bus/dpaa: support creating dynamic HW portal") > Coverity issue: 268332 > Cc: stable@dpdk.org > > Signed-off-by: Sunil Kumar Kori <sunil.kori@nxp.com> > Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com> Series applied, thanks
diff --git a/drivers/bus/dpaa/base/qbman/qman_driver.c b/drivers/bus/dpaa/base/qbman/qman_driver.c index 66838d2..07b29d5 100644 --- a/drivers/bus/dpaa/base/qbman/qman_driver.c +++ b/drivers/bus/dpaa/base/qbman/qman_driver.c @@ -160,6 +160,7 @@ struct qman_portal *fsl_qman_portal_create(void) &cpuset); if (ret) { error(0, ret, "pthread_getaffinity_np()"); + kfree(q_pcfg); return NULL; } @@ -168,12 +169,14 @@ struct qman_portal *fsl_qman_portal_create(void) if (CPU_ISSET(loop, &cpuset)) { if (q_pcfg->cpu != -1) { pr_err("Thread is not affine to 1 cpu\n"); + kfree(q_pcfg); return NULL; } q_pcfg->cpu = loop; } if (q_pcfg->cpu == -1) { pr_err("Bug in getaffinity handling!\n"); + kfree(q_pcfg); return NULL; } @@ -183,6 +186,7 @@ struct qman_portal *fsl_qman_portal_create(void) ret = process_portal_map(&q_map); if (ret) { error(0, ret, "process_portal_map()"); + kfree(q_pcfg); return NULL; } q_pcfg->channel = q_map.channel; @@ -217,6 +221,7 @@ struct qman_portal *fsl_qman_portal_create(void) close(q_fd); err1: process_portal_unmap(&q_map.addr); + kfree(q_pcfg); return NULL; }