net/thunderx: fix stats access out of bounds
authorMarcin Wilk <marcin.wilk@caviumnetworks.com>
Tue, 11 Apr 2017 12:35:13 +0000 (14:35 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 19 Apr 2017 13:37:37 +0000 (15:37 +0200)
commit695cd416ce6c02d7a20108765573936998b2dbf0
tree7642797c0eb35879b091304791275c60fb300fe3
parenta3bc447b403e0ceb56129dda7687b9cb00c6cbb8
net/thunderx: fix stats access out of bounds

Trying to assign more queues to stats struct break only from one loop
when the maximum size is reached. Outside loop iteration is continued.
This leads to access an array out of bounds.

Fixes: 21e3fb0050b9 ("net/thunderx: add final bits for secondary queue support")
Cc: stable@dpdk.org
Signed-off-by: Marcin Wilk <marcin.wilk@caviumnetworks.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
drivers/net/thunderx/nicvf_ethdev.c