From patchwork Mon Apr 2 07:36:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132652 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp2290411ljb; Mon, 2 Apr 2018 00:39:21 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/zcoGMuKtyfabtGxCxMYu9vDXPXk3hfy3BLOLFwb0l24OA38fx7bk5h9rYkGtONNeORToI X-Received: by 10.223.166.79 with SMTP id k73mr6025348wrc.200.1522654761126; Mon, 02 Apr 2018 00:39:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522654761; cv=none; d=google.com; s=arc-20160816; b=XGAmFGor9Ywm1jFypdiSXOJfsWqAiCZLwkYJ+ozL+uHbbbMKT8hN3x9vpqk8EDpJ7M l1PDvY+Ne/1TE23jMMtfUPvw9A+N6mGzixS/1/4VusscsnWSntT3DqZNPdBAAcrVpicn DjfrAsaqgytFGQ6qLSusUWkVbXMYClySbnNaD2TGzhm3VFvgZ/7StWiCz/fPGm8uq+hq lHhoRVtpyiJsQ31SbLORPRQvQM5sRlI0H8SDBXPf6PJzprwdBn00Bl3afOyzb8ir1Tfl x/04sndWHL1/OoyXI+LMiTWtV0kutcNcfBwclowz1RmVpgM7imD4+Nk5KXjyhcjSiUJc BLgw== 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=3IAvS25tgh2OkX9g3FHoDTxKQpYUJzEwuviRpM4oYfs=; b=YFCIPrjY3e/g+ykkkkh4Eh1fq4CG1FUhNYfp1D4X+4dU80I5yh6CpCuReA6aGTcs15 I13WHFa9h7fJVf/5Sy4WBCuGe4/U3nggurkeSzJBbveG73w8DiCT8DGEKmOL1hkOhyii 6KghCYWl572NBxTNCJXgEwsDPbb0LdP0ZGXqzWQmfGGPUbf2y9FXGCEY8vhq0qqxgL5/ 43UQzrdTytMniCNebzj9q2bJWHGitZTBWT3Otl2K5+9ArfCgGiqOaqCRHlXyWeU1xI9e 56tjjYrsI70RHoJ615T93lKOH56Y8WwJdixJ34+/xKnBjSSJs/xzVJrpTyhN+ic8l+x2 x9mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=uNf8k0WD; 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: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id v26si22861wmc.83.2018.04.02.00.39.20; Mon, 02 Apr 2018 00:39:21 -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=uNf8k0WD; 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 C3B2CAAD2; Mon, 2 Apr 2018 09:38:37 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0041.outbound.protection.outlook.com [104.47.0.41]) by dpdk.org (Postfix) with ESMTP id 31BAAAA9E for ; Mon, 2 Apr 2018 09:38:35 +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=3IAvS25tgh2OkX9g3FHoDTxKQpYUJzEwuviRpM4oYfs=; b=uNf8k0WDmclOfdhQ2PoqyWlbCGyNO9w2pBgKWrFVAZPYj9ze4pn7XTzR3Sol7efJ09EHgo2v82t0Y100X5oiWY3fzYtUI80w9Oqxc1GuMcOr1VAXccmyZRVKWphRJUqzGyahtxikQZycPYd3PJ4Z+Vz55ts9bZYyZ5UPZ9/G+3M= 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 AM2PR04MB0753.eurprd04.prod.outlook.com (2a01:111:e400:8411::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.609.10; Mon, 2 Apr 2018 07:38:32 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com Date: Mon, 2 Apr 2018 13:06:32 +0530 Message-Id: <1522654594-2757-6-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> References: <1522152039-32493-1-git-send-email-hemant.agrawal@nxp.com> <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR0101CA0048.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::34) To AM2PR04MB0753.eurprd04.prod.outlook.com (2a01:111:e400:8411::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 38f0afa5-5862-4e89-c5bd-08d5986cbcbf X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0753; X-Microsoft-Exchange-Diagnostics: 1; AM2PR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fF4bMawTIRm9dI84xEocWSXCDydzv54O530RZGia6PHPyt1qH3iOiwehHN0ktAK2aT9HInxDT3JUKOGk3DH9IY5SQ3nvzOK76RgBl6qzNdJbhY6dtnWj/61d7Iw4sUmpmDFykUIDwbZ9P0+HMXP3RaBCGgQspe9gXuBN5EPw7EPy2xOUvCMXiBbjjfsYhKRT4vPWdpMDE2HQDfmQy8QVQA10PWDJVwfBAEjF+hLC66oYkeRGf6QMg/7H1CMMc5G5JinLcC7U/+iYDRdRXtSBIG3CJBggS/Cde2BGeqyiF7TyIbvGQlekOlg7v73MKAXYbO2S4lt2t+btJTO3S6d5R6iSYzpJ; 4:CbdgWAR8dgDKFdNvUv35/XiMyQD1g0jZ0ec4OAwSY9L3XOGXR3N929AQdIBdgVe+CymnIzyPKSGYz4bRqhmFcWCzml/jZTwu7RuEBK4jCTsOxLAI4RkNO/q4PdBL0PUt0gnfib51NRnbRdwkQJpa5Tote/h+9DfuZD+tYoox8zHQL6BdRqauoY9WEYNVk5gTdEtYBmzjlMVsmaNCZzjvdWZuZO426A5VXhg+1vwTllTQIIdgntCFBamyy1gSLcdFP4P+uIfw3i3PVIUFM+xtRCRnMNofsztP/G6GtdKhvzWEYTLJ9xgXdk23dhMgX0OA3y8/R99iQ9oNbvZIg5I5uyUXIkZzfMhgECucNbPChEs= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192374486261705)(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231221)(944501327)(52105095)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:AM2PR04MB0753; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0753; X-Forefront-PRVS: 0630013541 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39380400002)(366004)(396003)(376002)(39860400002)(199004)(189003)(2616005)(106356001)(76176011)(68736007)(16526019)(50466002)(59450400001)(486005)(5009440100003)(55236004)(6116002)(48376002)(3846002)(11346002)(47776003)(16586007)(53936002)(66066001)(305945005)(316002)(386003)(6512007)(956004)(446003)(105586002)(7736002)(6506007)(186003)(486005)(2351001)(6916009)(26005)(476003)(4326008)(2361001)(36756003)(86362001)(478600001)(2906002)(5660300001)(8676002)(50226002)(8936002)(81156014)(81166006)(51416003)(6486002)(25786009)(97736004)(52116002)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0753; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0753; 23:PWKt/jnlsPq8air3f05/6if3nbB5asOpEMJg3XE0S?= CpqgZL8lbgssuvSK+sUl5QCCTnrvWOco0DlN/NBxJ1RRKZWKCSqveiErgzY/yM2J66io3EDr8BxQRHV2eCW99ZI/bLYjnlYVNIrAPNFbVEsOLe5arem91vzdyNtnadPOeCBDSl/+k4/H9Qji0vPbFZOmDWZ1/GzUnJh6mPFPGN3J0FMQq0SZIi+P8CLgtZLO0UaKLvMu+TgpotcnOHIYMWAgEiBEAGZn+7RP/pwjJ7x4BfLXh8wdAdAYUxL4x8Siv/3VOiPHVeZnWZRVLX28nVQENklGYj/UVaCNTo8f63zvR/keZhLBLxyGU9ZyGwKQ/c1BPuLpRLe3x06ckfP1NINduWejx6LChLGjGg5yPRSYSOQZWzjCrMlCyus5ooIdQesWyRAdx6l1pOT3EahyvTeXJWGVT4wU77i+o8UHgQt2LDf0xpp4dRvCHQRDY31xY+k+P1adr0eZOYx3ia+Jqw+Z7GiQ+5Ef9YhO68fOSKIgIDF3S9O9/2THr+6W07cMNmsD54nz60JqRsiEZc3Nt0KL2hvizaIXGp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TqAvdHZnv59K2tWJ6UmAba/oBfBTf6aN5lh73WFANXqnTXWj6Z6GV1RC53B+rbIEUhuKxDTmhsFyXgkmAEiwZ4wcbYg1w3qe/Hy2BIaZRqECVubmhAWa8uHmY81X2Fc+iY1lbSFhEJ3WX2xb5bKuiuTgtov/ZfWYa+/nm07L2EFwYGzz1qE6GygJIpb61qf8AjxiBh1HWcXQVQxvcuZjhMUDo1yLwlZzFVJPm+x0PYnMPDIM5BwphtVcvYxRNnnwcLD2m7dlQ5FBUVg8TujvM6OVyD9j7EAJP5iZj7q81uvOG2HzAPPy0pNjQ2zVQSiI1whiWGccIMU8fVcs4PtuJ6AJMfNAtRSFchNHNsRFZtwiCTWz+p2gKJr6JzCkrBLw==; 5:8tVt+i6KHCdMg7vFYrSBu4apXTrgdByYWQtifOoV/wiWPmXC13rUETMupyRdCos58CNOgKlKbrLMhCWLxsFlnD/JRtr+6MJAyEBsFOYJqubTv3QhEnFwfF0JbH8/oxo9JyvvKh4ttPLpcQ80wqry+oI3OqA0W9tXiUhc3jPxxR8=; 24:ujGT2zuV9PdDMj6mZ2p3aMWrPsW9W7m7rFju1DryCmKL6/8pvkZCg6itMvpQcngi9z5XJgeJLNXMRxkZ6pI0EpuHu/TbHJPZcEbqwq60ESU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 7:GC/5GNYyUI2fV8G2evpa3SdUWkLXVOMrqILqril4y7UdHmB0T/lLVgn7/5rk3JJlAkwcZ0e9tJ+jxM4DQvkyy89NHdVA/PQ0gNpVRcceVe4btEBhoFHEnCITzJxmPX3bbTSCwGKsKE05+/o34mkpV2ff760zSl8g9LmkqAFJs1nBSJ2ReEnOour1d2TZD3m/eqKVxEgKAEuOt4lcK8gZ8lME5hIZ9aX7jZUusSND58p6UNFboHukNaAC0g9QFk4W X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 07:38:32.1247 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 38f0afa5-5862-4e89-c5bd-08d5986cbcbf X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0753 Subject: [dpdk-dev] [PATCH v2 6/8] crypto/dpaa_sec: fix incorrect NULL check X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Shreyansh Jain Fixes: c3e85bdcc6e6 ("crypto/dpaa_sec: add crypto driver for NXP DPAA platform") Cc: akhil.goyal@nxp.com Cc: stable@dpdk.org Signed-off-by: Shreyansh Jain --- drivers/crypto/dpaa_sec/dpaa_sec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c index eebb905..2df5e5c 100644 --- a/drivers/crypto/dpaa_sec/dpaa_sec.c +++ b/drivers/crypto/dpaa_sec/dpaa_sec.c @@ -2252,11 +2252,12 @@ struct rte_security_ops dpaa_sec_security_ops = { static int dpaa_sec_uninit(struct rte_cryptodev *dev) { - struct dpaa_sec_dev_private *internals = dev->data->dev_private; + struct dpaa_sec_dev_private *internals; if (dev == NULL) return -ENODEV; + internals = dev->data->dev_private; rte_free(dev->security_ctx); rte_mempool_free(internals->ctx_pool);