test/crypto: fix session init failure for wireless case
authorHemant Agrawal <hemant.agrawal@nxp.com>
Wed, 17 Jul 2019 16:22:41 +0000 (21:52 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Fri, 19 Jul 2019 12:43:07 +0000 (14:43 +0200)
commit2967612f44b9726cb14242ae61658f2c944188d2
tree3682ab893b5ed8f949415fe06aa7447723890ef6
parentf0529ed29cd7858eefcce3bad792953de0160831
test/crypto: fix session init failure for wireless case

This patch add the support to handle the failure in session
create for wireless related cases. Else it will cause
segment fault due to I/O on un-initialized sessions.

Fixes: b3bbd9e5f2659 ("cryptodev: support device independent sessions")
Cc: stable@dpdk.org
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
app/test/test_cryptodev.c