From patchwork Tue Mar 27 12:00:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132477 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp4988543ljb; Tue, 27 Mar 2018 05:04:05 -0700 (PDT) X-Google-Smtp-Source: AG47ELsjR75Kw77rm/8N2y+3hQVYUseu8VyaXhyB4cCWF98epjtXCYJGlGQ75K0MvTvsTIEBJpaN X-Received: by 10.28.238.2 with SMTP id m2mr16912925wmh.135.1522152245573; Tue, 27 Mar 2018 05:04:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522152245; cv=none; d=google.com; s=arc-20160816; b=LJlr5l7QxrUtGqY2Cwtu2+UFWUde/7gLx3gR8jSgujpjF5KAI1EcMbIrrKWvwr9eCf yhwI7zoVrcTLPlmlhPRqEGIshfiTY6bDLl3C7lpejujneMjzbM1M2k0rJDHFkq+6VTST QuunirhDk+SVoOPMacW2ZoOoSLAWxJ4rh/xKzvAJ6Kb4WuOHezqmJ2Y8J6N2uObn9GW+ OZvz81AiNRvjXBcRM294yW3KBbWwt8qlefugsq5hubntGEooVXfmXikoZJXcKuzQeN2x 4sJCpjhHT/jY+w5Pjy7DEkC0L8j7voR+3fEWSkU+Cpl3nzB+hhg/1o68++YtGTCe8umT P6qg== 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=dZJamcB3ZSvkwQUhQ5QKQUCR2c0klSC2F3Y+q774T9hvkK/xsfB8BjFKJh42jGQ2H0 Lva77HbrQ5Svh76BCnTYVbVujG8qVho1oZMS4byvCqS3gIsbbDH1NQNVRceidZSU3v8p HmK0NdYRVilSAVOpok1H5LMnI0XQccoKvbkBFzVEfr6pOZexemfBkwnsGuuFQVnh3LGq 9TDH7aMjskEN0EZ9X1zIoVK1lqD8E+yi3hwLgyhRaPhcOG1WaufE0iPxvzvxcv/dsGs/ fopHkNvcnf0WDKUZ8QP8dQazudGSP/B4BJsjNvUY89OgexJofxyYwM2WBBsyqUxvxOkv vGXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=k2gV6q8P; 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 p79si982334wmf.258.2018.03.27.05.04.04; Tue, 27 Mar 2018 05:04:05 -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=k2gV6q8P; 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 0247A4F9A; Tue, 27 Mar 2018 14:02:55 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0067.outbound.protection.outlook.com [104.47.0.67]) by dpdk.org (Postfix) with ESMTP id CE2664CBD for ; Tue, 27 Mar 2018 14:02: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=3IAvS25tgh2OkX9g3FHoDTxKQpYUJzEwuviRpM4oYfs=; b=k2gV6q8PtdQDFQoz4Px2aD4B6SmdYo+nq6JMh1o5u/Yxkz29jWh6ud+d4twKCMEab2BZXFE52/M9PfrSFbHi8ySNLWuvAEgulqa42yFzDBBV9ydBxuzvcTWbeOJhGcH4SnEuH2fqTa5S+m9H2BYkds1oQCp2j5VuUaHiwGiDvTw= 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; Tue, 27 Mar 2018 12:02:49 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com Date: Tue, 27 Mar 2018 17:30:38 +0530 Message-Id: <1522152039-32493-6-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522152039-32493-1-git-send-email-hemant.agrawal@nxp.com> References: <1522152039-32493-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR0101CA0016.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::26) 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: b9340522-6507-4920-3ae6-08d593daa9ae 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; AM2PR04MB0753; 3:9XBL7iX2OvEcKcwcPKP0izy/Jf3oXtakBP8j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gL7FCM62t/z7DEqnf3rNZDt7Htbuj+BbexLlq7kWnInYy0tq2z8X8WpJlOKd6E+O5TsIqddSTS3ytnToMyy6dsS9Xr8+e9TiANPemKGj9LSneGi7QgnX57aHcVUt9hFff7GtA61BokhbNNsd91gNEiPZcrkLfzxIElXfLhC2cnGLS9armdP+QfkzPZdQtzjmfvl4EnfaeDpJLp6ezxuox1PIrNUCKa4gE8mwxx3EbcHIogsHDI/EUfGWtZvYhi5rDY0lYLBXUDlACNSyfd/TiC9RS6erBQ1kTJ0dn6zhDlRW0mZ+KwZNlp+63q1U4uUDBUxGGqQ6pkgJZlOFZM; 4:D7Ni8EaY6YRmLm/prCrfVo/wfgWa0A2uafZOVjig31IH9GLhkMUl2Xll2obyAJBjVYlO0j2wTsKmVsPIXcCgYcsV6+0daGCxGU2J8nUj5r7WtkoMzutq0S74qoUK7nOGopH8EY7FbTfo7NTwziP1/Ty2zyZykrJBKt5KKCv5iYnhqoqX6lLxq+/3+D6+Iywz/3XXppSqom6trRroVt+YnbA03P5vzjuuj9c181d51LEw008k2WtHCh4QTHWV07E8XZsWVkFLMIErfuQYulu304bAswgvrJnrkx1MiA3x1iVzKPDNTp3ExJ/TgvkxwCqGFvZAZRnk95cnttB3DL4r/XlI20H2ZWHPHhIGc2MewMk= 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)(3231221)(944501327)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041310)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:AM2PR04MB0753; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0753; X-Forefront-PRVS: 0624A2429E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(346002)(39380400002)(39860400002)(376002)(366004)(189003)(199004)(50466002)(6506007)(186003)(11346002)(59450400001)(16526019)(446003)(386003)(26005)(53936002)(55236004)(6116002)(48376002)(5009440100003)(3846002)(66066001)(68736007)(316002)(16586007)(6512007)(476003)(2351001)(47776003)(486005)(76176011)(486005)(956004)(105586002)(2616005)(305945005)(6666003)(7736002)(6916009)(106356001)(4326008)(2361001)(97736004)(52116002)(86362001)(8676002)(8936002)(2906002)(81156014)(81166006)(478600001)(5660300001)(51416003)(36756003)(6486002)(50226002)(25786009)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0753; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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:1r5MzUudG2Ry3WCirHVGHCJAEN2/YakHUZUoeiuOe?= KZ+DBw7BcwhtBfFNg0r90DCrPjdqIfNzM2U7TiY/GU4p238jXofVYgeY/EXMtUtLYerjhgRKkSENu72uTVBEB3IIh/grACA7HCz/u5rjYZF++xvzjAlh+potfOn2Gki3qMYjG1cjHhYE7dzjxWQ2yX8bUR36GPuVXDd6Z4wqeNL9HHX7EIJ4IUGdp3L5tRF/fDEUKmlIGtbxEVqPu0slJ7gmAPPjEXYUXEKnXMdRrq59VfT1Bqv2m3RHHfdi182GrFhKCl87apP/rcpqNR4dATk1I3h7UnnkYh29PQFS3uAcZdjPufAF05V2P+TgKaAmjYWQBZwW3FJ2W9UfULQaUOIdVrSJFGZwFHOdI3BkdIc34EHhf1b8skSJNjXI+70CRWL1o2swAnXewD5E9tM5s7SVOvEyvtKp2uA76kw7kTdrF5OFTXogXoByyKgBRcaRI1tklYU2e18Ykpx4Bl9hptfnVsVdsIcXW8UanDnE3aIjkemvmP5kTv67g7R1U6eblza/bpWKC5E9raWk0ZnLq7I4q69TUoI6wreVd9HoeOcoL1Cjdj/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/5t2GKDBK3nXQMUjYTPJOhMB0TV8KtVabVgNbDb79dh3EbYBAj0EtqVYv0ULbzN/SXpKbUUfzOUxZN7Ooom8BS68N4nGmX4dSf9pse6mJeOpjbsa1c5tH6Ic2qk5RU0pr7j+zUVRjjcpBkxWf5pllV66bCDcI0rJaX85myAeraN7jmYYWzj5tiOFY2bpmXRDollpN18l+4RlKUFRSyXbcrqlUsHteuRm4Vzbsa2sBRMZqwlYiT/Igc2W8bmSNwCz8XoXtTRiOAL7QbDNkY4B702H5TNKdU4Hn85QQSSv/ilYOxlo6f/Qk4i8V5JL3LQS2qW6QKs68GC9ppUigN+eaz3j2eT9KQ7PiLoGVo3Lyv8WdYCDyzZIshfeBsHAg==; 5:7AHOkOozmrFmH8bTuCl6NKwx0Ifr7/4DzAhzuST52QIZMo3DDjkSyXKak1z/MTOoR5yyZ4URrjOj9mQVA/rnsDcE4EQzC8oz2wbRtFxh1z/bbGk+7USIVDpfKjWBSXtyhu5sqXkU5m945gmQkHhpiiQU0ro8LRLrDLSN9YpoUoM=; 24:IPL2up+EmSC30EAH/++hIXJOAeki6RwDL4EmU4V1iYNHuGFEo4bb2BtkF9kxbLOOiyploZI811eKxcM4BBoOGAExOs1XKR+5jrcYw0i9B7s= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 7:39i/HM4LLrnGC+W9vBJy14+1kGNAqLPG1HMfMVcICG+vSnFn+DKOYGs2wNez3DtSyTwYPfYxY6s6XKWn5i9nmaoImXW7kswE9TZZpNE3uKdb07ubq1gM8RWLxQY2WVdLUZf1FU8dVdwddpx+W68QV4M904EvXj4Bo28Xc/awylDJSvb896LzPwvhq6ISiMBuYcMSJDQ7dnZCB6p4+k8gQUNpCqTBNezvTbKLFeWUVmUzcs2/YI01JAOJfx1JpDHM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Mar 2018 12:02:49.0976 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b9340522-6507-4920-3ae6-08d593daa9ae 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 6/7] 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);