numam-dpdk/app
Aleksander Gajewski 48ae81144f app/crypto-perf: fix uninitialized variable
This commit ixes problem with uninitialized nb_cryptodevs variable by
initialize it with 0 value. Program could jump to err label
without running cperf_initialize_cryptodev() function. Also assign 0
value to nb_cryptodevs after cperf_initialize_cryptodev() when value is
negative.

Coverity issue: 141073
Fixes: f8be1786b1 ("app/crypto-perf: introduce performance test application")

Signed-off-by: Aleksander Gajewski <aleksanderx.gajewski@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
2017-02-10 16:05:22 +01:00
..
cmdline_test make python scripts python2/3 compliant 2017-01-04 21:13:44 +01:00
pdump drivers: make driver names consistent 2016-09-16 11:55:59 +02:00
proc_info app/procinfo: free xstats memory upon failure 2016-10-12 18:40:50 +02:00
test mk: move PMD libraries linking to applications 2017-02-10 11:03:27 +01:00
test-acl acl: add AltiVec for ppc64 2016-09-09 17:56:14 +02:00
test-crypto-perf app/crypto-perf: fix uninitialized variable 2017-02-10 16:05:22 +01:00
test-pipeline app/test-pipeline: add cuckoo hash 2016-10-12 22:09:46 +02:00
test-pmd mk: move PMD libraries linking to applications 2017-02-10 11:03:27 +01:00
Makefile app/crypto-perf: introduce performance test application 2017-01-30 17:46:36 +01:00