test/crypto: fix build with GCC 11
authorKevin Traynor <ktraynor@redhat.com>
Wed, 5 May 2021 08:53:14 +0000 (09:53 +0100)
committerAkhil Goyal <gakhil@marvell.com>
Wed, 19 May 2021 12:54:29 +0000 (14:54 +0200)
commit8f73a72378333a68ada948ad648f9c6f925af58b
tree4739ce29fbdb79b9073a1b14a54b12e72b132606
parent05577f145e98c25eb66e6cc092f658390b871659
test/crypto: fix build with GCC 11

Fix the allocation for sessions, to prevent an array-bounds
warning with GCC 11. Set the not created session to NULL.

Fixes: 202d375c60bc ("app/test: add cryptodev unit and performance tests")
Cc: stable@dpdk.org
Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
app/test/test_cryptodev.c