examples/netmap_compat: fix infinite loop
authorMichal Kobylinski <michalx.kobylinski@intel.com>
Wed, 27 Apr 2016 13:22:41 +0000 (15:22 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 16 May 2016 19:01:51 +0000 (21:01 +0200)
commit30e1c9fab9fb00537816f5ee94f3f109ad33eedb
tree2b93bfe4a8d6b923781207ec7c59d8c1c821c214
parente752649c5b558daa2fb3d19d49664a79a6c3133c
examples/netmap_compat: fix infinite loop

Infinite loop: The loop does not have a normal termination condition,
so will continue until an abnormal condition arises.
In rte_netmap_poll: Infinite loop with unsatisfiable exit condition.

Coverity issue: 30701
Fixes: 06371afe ("examples/netmap_compat: import netmap compatibility example")

Signed-off-by: Michal Kobylinski <michalx.kobylinski@intel.com>
examples/netmap_compat/lib/compat_netmap.c