Message ID | 1523269371-28799-2-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 i29csp108849ljb; Mon, 9 Apr 2018 03:26:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx48uiT31KYwF3cOEhnVYp3RfOV20DLFCajIySRn811lmSdCRpi7/vW6os5+w+IIG+gJOdNxf X-Received: by 10.28.45.200 with SMTP id t191mr18010968wmt.7.1523269559965; Mon, 09 Apr 2018 03:25:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523269559; cv=none; d=google.com; s=arc-20160816; b=Nw9m+/qf1qb3OBzHo4ML63Y4N27GSQaATCJeZSc6uL5u9MdH3ASk+RLNaS5qdZsmRh GiZiyNQuN0Ze/dgWmfl6S6tH8mHLKT4eREkXFyLyfo4m3IqoGPB49Mu+hNoEmHbvuFu7 r6A2dlFlc3T8WLs8TGMFNb3IMCdjE0ZmitZa1dngc0c0ZJytJJswT0dWEhN84OE0y9Vd Tq41Ce4JVfzWvvyzOB/RfTpGLTHJRN79ekkkDPutjacMyc34G6GJb2T5CR+aYSkG79MD Vysp/UvcjxU48MJGv0sJpilWZWoRRTrCBufdAEJjNT5DdIRfEhgtU5RmLdlUWoAzSjTL j+RQ== 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=1fjCNwh3z8miiHGcJq6t0NO4OZV4XDY1oYhGawSEc1M=; b=SeHnd+wNq859a7s0v6LemCR55ltemfAWZZIn4hv2TxqjC780MblBdrMICpk1EO2N9i 7f+XeYBlI0aQUDjfS2ABHm7CWVqyUB82af2tI2BjgwFuUwh7lodUUCHTwCg/ZETAF+Ad NFyluaRt5P8NU8ni3FE7Mr5EQL3To7kyOJtH0IgEfVrpjafkyn1opEQgBnzvhm87MwNX x1nfiLHwHZIh7vECtuEAkcTR1iT74WB4AgTRm9qhiXaaaZLqN3h6fhJnTCpWxniPLzSv tbTUGFz67uRioqV52WzL/yPYa9f1J4poq5Ylp/NzNqT5VjDQivX95Bhl9ZHrMhHScxjq CYZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=X51ycSn4; 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 e45si23992wre.120.2018.04.09.03.25.59; Mon, 09 Apr 2018 03:25:59 -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=X51ycSn4; 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 D0BD91B7BB; Mon, 9 Apr 2018 12:25:55 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0061.outbound.protection.outlook.com [104.47.1.61]) by dpdk.org (Postfix) with ESMTP id 1DB131B7BE; Mon, 9 Apr 2018 12:25:53 +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=1fjCNwh3z8miiHGcJq6t0NO4OZV4XDY1oYhGawSEc1M=; b=X51ycSn4CTFHDF4dSgll63uCZ1M5fz8OEe/Frp2TcxRzh14l/2Cx1ZnqL7zXgSYbh1DVreCgus20LJf5BQgd7u1Ao5q0uIDVnScWq6I5/JAEFonP1WqYOs0ZUdbXBL2zbKWIV+00YW29UweRlvJ2OIPZRuRsmcar8G6Dz+JVyRM= 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:49 +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:45 +0530 Message-Id: <1523269371-28799-2-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523269371-28799-1-git-send-email-hemant.agrawal@nxp.com> References: <1522918464-4586-1-git-send-email-hemant.agrawal@nxp.com> <1523269371-28799-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: 2b8a80f8-8b6c-4d31-c424-08d59e044476 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; 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YXv2c+TwC3wxTzopr+vZT5OLa69g4586DaFjmvIfCl98rn+awf8NNrhPBEdirMce3Fzjq6ye7rtv+L3D7da8rrfEdLlJ6TTnWNb60xRiiRmi1yalWWlxpyoax/jiOZVx4RVrNLE8pbQDMJ+f7LFbNJwYsuSWFexpypkvRmCUuOSn+DS/TC8Jg9I3oXWL1+kExWMYjG39EiMA0XLgLKPkd8eRTciYhnqbwSXD2NR3Y9Bh+w9UVuaFBTaHuoXQkNn1zKYZFcsuBOx5fwlB73j6Xa0Msg7ntntF8GGuaOt5ipec6PSfP2eIFuBL1iguREKzTA4oPStBMeGDyUiFPVnZ3Ou9MSJUyCC; 4:RU3HjTtvi24JMsHkvZFsmOyrSK3vQyhJjDuTPQDuGbzrk+nYCeJ2/FUAd9PY/LpwSa6ld0JqRcPR7YYXfMih8u+FwR228ijmWHazv4tyf9rldaVh8aBK8xqZ8aNsduDFRz0KUe9Gfkib8jooXzKnMGDdzcqv3eYWouEyEU+Zhio/fkFbWwkgy6ZI79q6XMoVIb7apnqRtH8ORJlPKLa3Tcn+b5wWvLmfrAmAqRMTHrG7lFBHiyslTQ+KL4IrCJsGkZY7hlsp7dsPvb1ExE03zR+QLw8JJZD0sHe2GVgT76pC0RvDbPMoPvuDx823JjRKMONLXHRK1egMSOaOY9FKJlei2STsxzzZw4G0VR9HkMxz0WdKTmP2o8Z5czCAu96N X-Microsoft-Antispam-PRVS: <AM2PR04MB07568CEC4CD1B44382CAF7BC89BF0@AM2PR04MB0756.eurprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(227817650892897)(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)(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:uh1oWYsYFF/4tL1nNJUfd7WZ9DbqTYOEI7g8zvOtz?= 5EZTFghcIQWlv6k80+hRtWLcnJ9coKxJxTTQasL2KvcBrqnEUYHDTQIWHRPCSqbB6VIS+iplEDOSMVYaKGoUFatk0yv0H3ENCRaRLVvjIdMYl1AVASso9nx2B+4ua0zM6aJrvmRiBlUBl7rn2vZRswHEgdbYq2PU5lZ4QwZjKC9dhGxV+Ef6+f7y0rffws8trikShx5g4XylckrTAehKGm74L+HZwKuapYj982h5dj9F8RXSkXPqdph1Zxw7pkgzKF6OquNpB4vveFi4dKSf/MM/sQHmv2zWGu8sQt+FSKVi+4bo+LIjvGfWyzLnHRhudoxmdQAGLT9MtBMS/bMY4LhNnBFuEMN7dHbtOLQuFCsFTyO5X95bAUWEibej6kGTZzs+H07aAfySoeMLF2S312O0nvDodTJ1iD8m6XCEDkfvgXzFEbu1k60Pol6uM9QM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cb1hkkLqrPx9 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2018 10:25:49.9266 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2b8a80f8-8b6c-4d31-c424-08d59e044476 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 2/8] bus/dpaa: fix the unchecked return value 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
|
diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c index 3535da5..ffc90a7 100644 --- a/drivers/bus/dpaa/dpaa_bus.c +++ b/drivers/bus/dpaa/dpaa_bus.c @@ -308,9 +308,15 @@ rte_dpaa_portal_fq_init(void *arg, struct qman_fq *fq) /* Affine above created portal with channel*/ u32 sdqcr; struct qman_portal *qp; + int ret; - if (unlikely(!RTE_PER_LCORE(dpaa_io))) - rte_dpaa_portal_init(arg); + if (unlikely(!RTE_PER_LCORE(dpaa_io))) { + ret = rte_dpaa_portal_init(arg); + if (ret < 0) { + DPAA_BUS_LOG(ERR, "portal initialization failure"); + return ret; + } + } /* Initialise qman specific portals */ qp = fsl_qman_portal_create();