[PATCH v3] app/test-fib: fix possible division by zero

David Marchand david.marchand at redhat.com
Fri Feb 11 08:55:50 CET 2022


On Fri, Jan 28, 2022 at 6:44 PM Kevin Traynor <ktraynor at redhat.com> wrote:
>
> On 27/01/2022 18:08, Vladimir Medvedkin wrote:
> > This patch fixes the division by 0,
> > which occurs if the number of routes is less than 10.
> > Can be triggered by passing -n argument with value < 10:
> >
> > ./dpdk-test-fib -- -n 9
> > ...
> > Floating point exception (core dumped)
> >
> > Fixes: 103809d032cd ("app/test-fib: add test application for FIB")
> > Cc: stable at dpdk.org
> >
> > Signed-off-by: Vladimir Medvedkin <vladimir.medvedkin at intel.com>
> Acked-by: Kevin Traynor <ktraynor at redhat.com>

Applied, thanks.


-- 
David Marchand



More information about the dev mailing list