ivshmem: fix overlap detection
authorAnatoly Burakov <anatoly.burakov@intel.com>
Tue, 24 May 2016 12:50:05 +0000 (13:50 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 7 Jun 2016 10:01:40 +0000 (12:01 +0200)
commita2113ebba5c5bad6568dcebb9b2bc50027d4affd
treec1f151df61f3e2c99153d35d1581f0241a035f99
parentf2027fb2c11f405bbddedc20ea2c510d144d8a19
ivshmem: fix overlap detection

Partial revert of an earlier ill-conceived "fix".
Adjacent segments can never be considered overlapping because we
are not comparing ends to starts, but rather starts to starts.
Therefore the earlier fix was wrong (plus it also had a typo).

Fixes: d6cf31419e51 ("ivshmem: avoid infinite loop when concatenating segments")

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Tested-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/linuxapp/eal/eal_ivshmem.c