Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app/crypto-perf: fix data comparison
[ upstream commit ddec2a39bae12da2817392239ddce19f3953fd53 ] The function memcmp() returns an integer less than, equal to, or greater than zero. In current code, if the first memcmp() returns less than zero and the second memcmp() returns greater than zero, the sum of results may still be 0 and indicates verify successed. This commit converts the return value to be zero or greater than zero. That will make sure the sum of results be correct. Fixes: df52cb3 ("app/crypto-perf: move verify as single test type") Signed-off-by: Suanming Mou <suanmingm@nvidia.com> Acked-by: Anoob Joseph <anoobj@marvell.com> Acked-by: Ciara Power <ciara.power@intel.com>
- Loading branch information