Session was null as test_crypto_session not initialised.

Fixes: b3bbd9e5f265 ("cryptodev: support device independent sessions")

Signed-off-by: Srisivasubramanian S <ssriniva...@caviumnetworks.com>
---
 test/test/test_cryptodev_perf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/test/test_cryptodev_perf.c b/test/test/test_cryptodev_perf.c
index 8cddaa7..8febd1a 100644
--- a/test/test/test_cryptodev_perf.c
+++ b/test/test/test_cryptodev_perf.c
@@ -2950,7 +2950,7 @@ static uint32_t get_aead_digest_length(enum 
rte_crypto_aead_algorithm algo)
 
        auth_xform.auth.digest_length = get_auth_digest_length(auth_algo);
 
-       rte_cryptodev_sym_session_create(ts_params->sess_mp);
+       test_crypto_session = 
rte_cryptodev_sym_session_create(ts_params->sess_mp);
 
        switch (chain) {
        case CIPHER_HASH:
-- 
1.8.1.4

Reply via email to