Message ID | 20191101175141.4663-2-hemant.agrawal@nxp.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp823166ill; Fri, 1 Nov 2019 10:54:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJHd/WMbPqecsBErDPEOSoegAI49vcCZ8K3IAbVWuBJkT8FRKbuQvFfQLBTGVAgf/SCe4s X-Received: by 2002:a17:906:118d:: with SMTP id n13mr10745426eja.229.1572630894847; Fri, 01 Nov 2019 10:54:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572630894; cv=none; d=google.com; s=arc-20160816; b=q5GGQybBRkNcrnDJz9s8TuT9xIceUjHdnCg5hPD6tVcnK68qUS1meg+00E9LM5YcWB cZc6jlYtNZbHBC1j4Ns4boL+xlZBXWLwf0MoDhku7grOIUyWIS6k//7dZqfu6vbAHGR8 jFEmfzQZlx+odb4lFW+ub3OVPvmXYcV8xPlSSa+PfwsSGaIbh4/2rDm3wBXYzQF4KFYX n/HamPxjXxUOF0dOKuSZPxxRSao8C091QWXvAbMQMPbZzzBmDnSYNK+tqmyRt0YAxRIh k1BZstKNhO6v7GEq1vS+H/LpXRQijpFNWv+YBfuVb31v0shV16FCn1+MRpfUttl0DS0h afuQ== 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:references:in-reply-to :message-id:date:to:from; bh=3kVsYeGav2heanc8fbCgdPIRiOup2w1IIg3UOlcHmzw=; b=X/6GZ3AfjgK8scVSFrBuUCJbwonJrmKsO4CEH+OQauunAcK/68+6WkZujfe9qrrZmF PTf4bUo771eSJMzswxRRVpDKGmDjho82JN/OKB7FAw/RZ4UOj5ternC0oFv4JEWJI3eJ jG+q1cmHufRcNWgbFMKMyn2E0FwwlgGMI+MFAyAN+6B5hS+kECVBWrom5on7Hfsr+UrT 4KA/pjP0PW3XMzjOcYBcr1LveR5UslPVo0sywgDIegxsyGDOrwA9iD7DLhBgc+2YJ2nu FDKeEW7dM3HFb1VWp2uyVqz6rBittyzKLQompdc2rvu9HtreRxrRb/nf3JjBOykGNYkL Uq/w== ARC-Authentication-Results: i=1; mx.google.com; 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 o57si1051446edc.240.2019.11.01.10.54.54; Fri, 01 Nov 2019 10:54:54 -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; 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 4F9A21E862; Fri, 1 Nov 2019 18:54:49 +0100 (CET) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id 30F0E1E543 for <dev@dpdk.org>; Fri, 1 Nov 2019 18:54:47 +0100 (CET) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id BA60B2002FF; Fri, 1 Nov 2019 18:54:46 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 56439200133; Fri, 1 Nov 2019 18:54:45 +0100 (CET) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 1F5A9402FC; Sat, 2 Nov 2019 01:54:43 +0800 (SGT) From: Hemant Agrawal <hemant.agrawal@nxp.com> To: dev@dpdk.org, akhil.goyal@nxp.com Date: Fri, 1 Nov 2019 23:21:30 +0530 Message-Id: <20191101175141.4663-2-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191101175141.4663-1-hemant.agrawal@nxp.com> References: <20191025083336.24212-1-hemant.agrawal@nxp.com> <20191101175141.4663-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v2 02/13] crypto/dpaa2_sec: add check for the session validity 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://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
[v2,01/13] crypto/dpaa_sec: fix to set PDCP capability flags
|
expand
|
diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index 6d59e73e9..70207818b 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -1368,6 +1368,9 @@ build_sec_fd(struct rte_crypto_op *op, else return -1; + if (!sess) + return -1; + /* Any of the buffer is segmented*/ if (!rte_pktmbuf_is_contiguous(op->sym->m_src) || ((op->sym->m_dst != NULL) &&
Check if the session is not null during processing. Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.17.1