crypto/dpaa2_sec: add check for session validity

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>
This commit is contained in:
Hemant Agrawal 2019-11-06 10:47:20 +05:30 committed by Akhil Goyal
parent 91413a88e7
commit 447a5d4029

View File

@ -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) &&