Re: [dpdk-dev] [PATCH v2] test: fix division by zero

2021-05-19 Thread Thomas Monjalon
13/05/2021 10:23, Bruce Richardson: > On Thu, May 13, 2021 at 09:10:37AM +0800, Min Hu (Connor) wrote: > > Variable i is used as a denominator which may be zero, and > > this may result in segmentation fault. > > > > This patch fixed it. > > > > Fixes: 948bc3d6d095 ("test: add reciprocal based di

Re: [dpdk-dev] [PATCH v2] test: fix division by zero

2021-05-13 Thread Bruce Richardson
On Thu, May 13, 2021 at 09:10:37AM +0800, Min Hu (Connor) wrote: > Variable i is used as a denominator which may be zero, and > this may result in segmentation fault. > > This patch fixed it. > > Fixes: 948bc3d6d095 ("test: add reciprocal based division") > Cc: sta...@dpdk.org > > Signed-off-by:

[dpdk-dev] [PATCH v2] test: fix division by zero

2021-05-12 Thread Min Hu (Connor)
Variable i is used as a denominator which may be zero, and this may result in segmentation fault. This patch fixed it. Fixes: 948bc3d6d095 ("test: add reciprocal based division") Cc: sta...@dpdk.org Signed-off-by: Min Hu (Connor) --- v2: * to skip the printouts if i == 0. --- app/test/test_rec