test/reorder: fix out of bound access
authorFerruh Yigit <ferruh.yigit@intel.com>
Tue, 13 Nov 2018 23:31:37 +0000 (23:31 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 14 Nov 2018 03:55:43 +0000 (04:55 +0100)
commit1af9bc9c60291e43aa26f8ee92371c8b04a9b55f
tree42df9dc603a71e5d37b086e316366c8ef6cf903b
parent5835b7d3758b99e84ef362c521f193dd6d3a5c46
test/reorder: fix out of bound access

The value of array index 'i' is out of bound because of the previous
loop it has been used.

Assuming intention is using '0' since the check before free is robufs[0]
check, fixing according.

Fixes: ecd867faa860 ("test/reorder: fix freeing mbuf twice")
Cc: stable@dpdk.org
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
test/test/test_reorder.c