hash: fix out of bounds array access
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 15 Jul 2015 12:40:41 +0000 (13:40 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 16 Jul 2015 14:47:56 +0000 (16:47 +0200)
commit2a4103eba929e67e0f0eb9dc808da26377fe2665
treeeae91c52e078ffc0a9cf8eb641b4e6693d7e9708
parent29d607db3cb46dcb9a05f5326c19acb61951e5e3
hash: fix out of bounds array access

When encountering a loop while adding a new entry,
element out of bounds of array was being unnecessarily resetted.

Fixes: 48a399119619 ("hash: replace with cuckoo hash implementation")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
lib/librte_hash/rte_cuckoo_hash.c