[dm-devel] [PATCH] libmultipath: make vector_foreach_slot_backwards work as expected
mwilck at suse.de
Mon May 27 10:03:59 UTC 2019
On Fri, 2019-05-24 at 17:41 -0500, Benjamin Marzinski wrote:
> All of the code that uses vector_foreach_slot_backwards() treats "i"
> the index of the entry "p", but the way it was coded, that wasn't the
> case. "i" was the number of the entry counting from 1, not 0.
> Signed-off-by: Benjamin Marzinski <bmarzins at redhat.com>
> libmultipath/vector.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Martin Wilck <mwilck at suse.com>
Let's add that there was only one caller that actually used
"i"("multipath -W"). So the harm done by this bug was not as bad as one
More information about the dm-devel