app/bbdev: fix division by zero in latency measure
authorAmr Mokhtar <amr.mokhtar@intel.com>
Wed, 31 Jan 2018 12:56:21 +0000 (12:56 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 31 Jan 2018 17:42:38 +0000 (18:42 +0100)
commitc3aaec2633595cc8adbb9a1eb8fc443bd1c88638
treef5bec44180c9a21c833ca697500b699d7157b8a4
parent9efeea0a19fa3da77b72905d85d5c24a2320080b
app/bbdev: fix division by zero in latency measure

check that iter > 0 before division

Coverity issue: 257027, 257038, 257014
Fixes: f714a18885a6 ("app/testbbdev: add test application for bbdev")

Signed-off-by: Amr Mokhtar <amr.mokhtar@intel.com>
app/test-bbdev/test_bbdev_perf.c