Content-Type: multipart/mixed; boundary="===============5386522493052270621==" MIME-Version: 1.0 From: Tony Zhu Subject: [Accel-config] [PATCH v1 1/1] accel-config/test: Fix description timeout calculation to overflow Date: Thu, 28 Apr 2022 09:31:30 +0800 Message-ID: <20220428013130.856374-1-tony.zhu@intel.com> To: accel-config@lists.01.org List-ID: --===============5386522493052270621== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Dsa_test application will fail when when utilizing memory sizes larger than 128MiB against multiple devices. The init of timeout should use the input msec_timeout. Signed-off-by: Tony Zhu --- test/accel_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/accel_test.c b/test/accel_test.c index 8487099..0468a00 100644 --- a/test/accel_test.c +++ b/test/accel_test.c @@ -331,7 +331,7 @@ int acctest_wait_on_desc_timeout(struct completion_reco= rd *comp, j++; } } else { - unsigned long timeout =3D (ms_timeout * 1000000) * 3; + unsigned long timeout =3D (msec_timeout * 1000000ul) * 3; int r =3D 1; unsigned long t =3D 0; = -- = 2.27.0 --===============5386522493052270621==--