From patchwork Mon Apr 2 15:33:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132665 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp2711133ljb; Mon, 2 Apr 2018 08:36:32 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+c2qjtdPSCra0ns/MbwwT0eVRw9OK6MsvqtX4dU0OFtdQprvrTZ7W22IJS+2yZCRKfWvRj X-Received: by 10.28.138.143 with SMTP id m137mr1385817wmd.85.1522683392780; Mon, 02 Apr 2018 08:36:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522683392; cv=none; d=google.com; s=arc-20160816; b=zQ+bQo4UugCL9zMpmwOTnUjBwMaEw4MiE+0XJ/a38UlVY+dvGaytpPhF2ZxKzp6yES Vu98lDSzfT5b341EWXzVL49vB4bevRPEcnfEJktZbGFMI+pBKbfUyyWlBAZxcJraPtNj ZN2UwXX39ra9K7YgVF4RzuZxxslw6Gw8YIxCIDjvHMEwAFK03b/Uy+Kp5IdxBeHfq4L6 QHuinqDlgO6J5bf/foWpCBBAaKnfstR+/PEBBskn0ZH9YwYxhTYepnAQLWsFi2gzVU0x Z2eknjBPww001VWm5UdG+jqssbE4udv3nvaKmffliP+s91/mKajThtKl4lNrRpOGQC/7 IEyg== 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=N32ey8qQd2DJfEVQRFjeZcnPYL1Ma1XcAJjjdguMKvj22Zn/py27pjstHa5UaIooo7 zeW55DfEzwn9xCUXT65K4ATsCiglaBIqQcuJuRC5jPMYGNbIm+v+wiPhSx0k+hBAn1Oe uDGbw/PUGhP2Au4jfQ1uc4tBzJ28PHrR+EFRzbm5p3PDZsduVoShG5tEY9SWEC+z6uyH PqE+csNrMmTcN3L7MbUusxPsj9UHAg6/hXhXgGMcXljQgV/X+QogUv0Kxc+Zfn2SjOet VawifdHOHUpe+DzoQJBguMbWaH4ZSV3cJgviQL/pGxHxEVRXEIitLmlMMcgKVlc8QpAu dYaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=O2B6AGIC; 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 i65si581281wme.197.2018.04.02.08.36.32; Mon, 02 Apr 2018 08:36:32 -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=O2B6AGIC; 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 9C6761B2B1; Mon, 2 Apr 2018 17:35:34 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0049.outbound.protection.outlook.com [104.47.1.49]) by dpdk.org (Postfix) with ESMTP id 785B01B28D for ; Mon, 2 Apr 2018 17:35:28 +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=O2B6AGIC34aRZ4/9l3XmXKpizGHh96HvXvoSoIAiUNcY3YfPF3nE718859+pD4vwD6HT/B7EnMqudqrBSWrK/T/iQAxpseQv6jSA6++GXQpStDrlIz8E1bvljeDMosv9HdjEYUvHTpi/G0UGcT4MkOY/D6/M0C1UpPGy7SgteBg= 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 DB4PR04MB0767.eurprd04.prod.outlook.com (2a01:111:e400:984d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.631.10; Mon, 2 Apr 2018 15:35:25 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com, dpdk-up@NXP1.onmicrosoft.com Date: Mon, 2 Apr 2018 21:03:19 +0530 Message-Id: <1522683201-23963-7-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522683201-23963-1-git-send-email-hemant.agrawal@nxp.com> References: <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> <1522683201-23963-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR01CA0090.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00::30) To DB4PR04MB0767.eurprd04.prod.outlook.com (2a01:111:e400:984d::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 1f066de3-f0fc-499b-6b93-08d598af5b71 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DB4PR04MB0767; X-Microsoft-Exchange-Diagnostics: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dfd1wp82YBPTLbE8V1GATSngtKo9l2mZUe0ChZXutSSD7+uZ8lUY9LDvmWoNeot0MFKMb7E+uosT/5Yky5Hc7UZ8Kj2pjTrWF0EsFDQthuCjP34h5gqX3icVbZGFJRtIck7KU/tYolO6RWDScSuEWNMfxJQCkemPwMtPx96EgZxwifz7YS3WsQye7+5PhIX+QI+eSWH+wlLaAX6ZUJda+/BBKyA37cpiZrA0QDFwAC/O1p7SfltV8YdSBS1/ONBmID9fbGSgUNhDsr7vn3uYpBRfGZ3T3wULdVgb8CCO7sahjl8zYvuDHQ8G3toouXtkb0VeIPw/BMbUEgpj/cgF1R9Hl6BxTX5cvpYpkRCDHvCC2wG7; 4:4Fb2Y52TrGVEbYKlI9m6Hi4rAG1cEALbQKPpOUhEbCsEnPv80/1/zxjoD4efC/B5X74kZO9Pzqa+lPkxMcAARYYj0JR7l3O47/rLSbPIGCeTC1xti7vev7ekCk/2UTKaC4UR/Y5uqtCDBOm/rhQog1CSzrZlA955MlFX909hHFVuhrDN4wo7QS5QQrA9urYe/Wg7EHQp+lJwPbIRXaH6GSbZGTHb/0UF2H7UxXIYQUH+YUizmoOgm7z5sPf4dmu976UKOrr6nxuVPCkTgzmXOYYroxVd1Ao6ghh8YnZ14G6QGGEfrDPEwqdVw/WwyAgbJvM1rgpixcRrZnTjEaaUjaDoXmx8+yVS62TFMMU1+YY= 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)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:DB4PR04MB0767; BCL:0; PCL:0; RULEID:; SRVR:DB4PR04MB0767; X-Forefront-PRVS: 0630013541 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39380400002)(39860400002)(346002)(366004)(396003)(199004)(189003)(16586007)(16526019)(86362001)(6486002)(50466002)(76176011)(186003)(48376002)(2906002)(6512007)(55236004)(47776003)(2351001)(5660300001)(73566003)(6506007)(386003)(97736004)(2361001)(52116002)(51416003)(305945005)(105586002)(486005)(7736002)(81166006)(5009440100003)(26005)(8936002)(3846002)(53936002)(36756003)(107886003)(476003)(6666003)(59450400001)(6916009)(25786009)(316002)(4326008)(6116002)(66066001)(478600001)(956004)(8676002)(106356001)(50226002)(68736007)(11346002)(446003)(81156014)(2616005)(486005)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:DB4PR04MB0767; 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; DB4PR04MB0767; 23:X20YATnqqXEF2vKchYGIRtnJeLEc1RBn2G40nA9g1?= LlzxqQ6voCQ79K22zlWyWEnRw8Jeq9SPT05t1ZtT4y0yBd0EjoXIBuG4QDWmaAf31j1m8cDSYhfAZsN5OtVhyNFyJ9d36tX8Uz6uzuOTOZSAZNgSkbc79r3BuIGGfC0j4V1Nn8j6ZWCSblUIoD/KexsMaKCryHf7HG8uHpdikM+A9+dMQU5i+mrR4s4SnRccJ28RU74rfRKNq3MI4BhGCCa9y2khCWmmI9QQnTRlkE9Vnv9ltkdy+mc11W8P998OueFcUXQgf6kmOLTafIVoM0uZ4xgpcBbjvJiUj6ztBb6q5dk2ipW6hy+PxReKru1AxkJ8JUcPS8AtT8DB8A0erZXOow20HJ725CqQoQHxmRti1mMuv4hF1fKqtu4eg9BxX0eT/zA2dv0jPdWDP4jA9uUXvdf5cwNcMcP3fdpgoJ6p3jvEsKHAwE0DGMpTcOvGfZZrykunYQcFgZthdvSIHKhxTElKOAC4N8WkXidaqCY/fVbJ6FG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ics: 1; DB4PR04MB0767; 6:vShujWV8qcus94X3UhOImsf0Gfhjem7+QQsiUIh5RORop3+7olKw8NyQv5yju/D4wFfxZvtmJsuJbQHOu10LsRa7mlKD4yklypf/89FzwyWTdym/pmtNkzwyay3YUbgEFQzonfYxk7Pz0EUvDHKb6hNzEcoRPysF7OymhocJw7QBryWhL7mMkNS3WPTc1bJ1MBVNF5iB/WWQ3WlC5S63lIdbiNonRvtQ2l6hCBQnW8i5yDn+xa/QxhLng3CeUHHWzpGK98XE7v267dkDMkbNKKKKd/awyoX4Vqma3AbxWZ16es2L6ESVhD9fcgrWWQ+uJ96kFKqENtYs6LAGo+f367SgMqEBvlrbh68dOGPykofb7Ovl9objBFJheZGlGTAxvvqTfXAkTfzJmdso2/SYCinV8nfrJOXVkV5ML7JwxjJZMJuDp1IzGeaS/H014p20dnvc8bfb4zEaz2Pz2bUzlA==; 5:J6gtcTnuvx+sjVVadZRDmeBf5nhX0UI+hNs0RapM9Ag2hToQ0U9HE9cKYX4GBqmK4HRc0e2Y++Oyx9BEY5yjebxNgGAraYJ7CiRGZbfQQB9Em97yjcjWV7OPhNcJkHtP2+Vx3vgZFPYhFQb9Kde4wKbi1Xy9448PNOhhBuk3dng=; 24:Np17rTv53FSkovVUK86XvCge3Bdrm8+xlra1onqacY0fN/h18gHZNsMy1Z03ohN9vzrJxhwoDRaagGLLH7QFZOzHR17Gh/zTnHiFG4YLbY4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0767; 7:O6T6erF8RSPvOj3isEbCNyYr/ZsvFEiRM2WAJjIf5ZNLgl27iO4x25WCFCKPVmqPENjbu+t4sogontKPy9B+8M8m26e1YnsnwxsOHSgO3ovwDL3/dVGYW0qPBGn+PrplNz1OuKP4AhojGLmtNmZSKMd9xiSYkWdaeKnwetzYra9QApBXYJ6on3DdnGdN4CgbcODbh+o94Ve9YzGVxa48tz/om06aPVUVfL4KRgWvDmm5h0DNik/eZbtUUS9NSaeZ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 15:35:25.2557 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1f066de3-f0fc-499b-6b93-08d598af5b71 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR04MB0767 Subject: [dpdk-dev] [PATCH v3 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);