bus/vdev: fix find device implementation
authorGaetan Rivet <gaetan.rivet@6wind.com>
Fri, 27 Apr 2018 14:13:06 +0000 (16:13 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 27 Apr 2018 14:31:49 +0000 (16:31 +0200)
commit3701b792a8a3bce519adc979d5cc8d127231fd48
tree8f4a3daac3f5beeae3b18b8839a10dcbb6a1e8a1
parent64de7e4069b9b84b0f2d840b44e334233412d55f
bus/vdev: fix find device implementation

If start is set and a device before it matches the data,
this device is returned.

This induces potentially infinite loops.

Fixes: c7fe1eea8a74 ("bus: simplify finding starting point")
Cc: stable@dpdk.org
Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
drivers/bus/vdev/rte_bus_vdev.h
drivers/bus/vdev/vdev.c