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:
parent
91413a88e7
commit
447a5d4029
@ -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) &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user