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:
447a5d4
)
crypto/dpaa_sec: add check for session validity
author
Hemant Agrawal
<hemant.agrawal@nxp.com>
Wed, 6 Nov 2019 05:17:21 +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/dpaa_sec/dpaa_sec.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/dpaa_sec/dpaa_sec.c
b/drivers/crypto/dpaa_sec/dpaa_sec.c
index
ee59cf9
..
fef10df
100644
(file)
--- a/
drivers/crypto/dpaa_sec/dpaa_sec.c
+++ b/
drivers/crypto/dpaa_sec/dpaa_sec.c
@@
-1773,6
+1773,14
@@
dpaa_sec_enqueue_burst(void *qp, struct rte_crypto_op **ops,
nb_ops = loop;
goto send_pkts;
}
+
+ if (!ses) {
+ DPAA_SEC_DP_ERR("session not available");
+ frames_to_send = loop;
+ nb_ops = loop;
+ goto send_pkts;
+ }
+
if (unlikely(!ses->qp[rte_lcore_id() % MAX_DPAA_CORES])) {
if (dpaa_sec_attach_sess_q(qp, ses)) {
frames_to_send = loop;