[dpdk-stable] [dpdk-dev] [PATCH 1/3] test/crypto: fix stat test

Dybkowski, AdamX adamx.dybkowski at intel.com
Tue Sep 1 11:46:50 CEST 2020


> -----Original Message-----
> From: dev <dev-bounces at dpdk.org> On Behalf Of Ruifeng Wang
> Sent: Monday, 31 August, 2020 10:52
> To: Doherty, Declan <declan.doherty at intel.com>; Trahe, Fiona
> <fiona.trahe at intel.com>; Griffin, John <john.griffin at intel.com>; Des O Dea
> <des.j.o.dea at intel.com>; Sergio Gonzalez Monroy
> <sergio.gonzalez.monroy at intel.com>
> Cc: dev at dpdk.org; akhil.goyal at nxp.com; honnappa.nagarahalli at arm.com;
> nd at arm.com; Ruifeng Wang <ruifeng.wang at arm.com>; stable at dpdk.org
> Subject: [dpdk-dev] [PATCH 1/3] test/crypto: fix stat test
> 
> ut_setup / ut_teardown are invoked for each test case by test framework.
> The call inside test_stats is unnecessary and even incorrect.
> This caused double free of objects such as crypto operation structure.
> Trapped the issue when RTE_LIBRTE_MEMPOOL_DEBUG was enabled.
> Fix issue by removing ut_setup / ut_teardown from test case
> implementation.
> 
> Fixes: 202d375c60bc ("app/test: add cryptodev unit and performance tests")
> Cc: declan.doherty at intel.com
> Cc: stable at dpdk.org
> 
> Signed-off-by: Ruifeng Wang <ruifeng.wang at arm.com>

Tested-by: Adam Dybkowski <adamx.dybkowski at intel.com>



More information about the stable mailing list