crypto/dpaa2_sec: fix stats query without queue pair
authorHemant Agrawal <hemant.agrawal@nxp.com>
Thu, 3 Sep 2020 17:17:44 +0000 (22:47 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 14 Oct 2020 20:22:06 +0000 (22:22 +0200)
commit356bcac8f11ef916f47be74b295c36755d8165cf
treeda2775f584b8dda90a840085f245dcb65ad251ab
parentd698fa5469acab59e935e13ffe453b77be9c69ac
crypto/dpaa2_sec: fix stats query without queue pair

dpdk-procinfo calls the crypto stats API, which results segmentation
fault on DPAA2_SEC.
The queue pair array will be NULL, when it is used without
configuring the SEC device.

Fixes: 02f35eee264b ("crypto/dpaa2_sec: support statistics")
Cc: stable@dpdk.org
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c