git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91413a8
)
crypto/dpaa2_sec: add check for session validity
author
Hemant Agrawal
<hemant.agrawal@nxp.com>
Wed, 6 Nov 2019 05:17:20 +0000
(10:47 +0530)
committer
Akhil Goyal
<akhil.goyal@nxp.com>
Fri, 8 Nov 2019 12:51:16 +0000
(13:51 +0100)
Check if the session is not null during processing.
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
index
b04890a
..
7d51112
100644
(file)
--- a/
drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
+++ b/
drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
@@
-1365,6
+1365,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) &&