From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerin Jacob Subject: Re: [PATCH 2/2] app/crypto-perf: fix memcpy source range Date: Wed, 16 May 2018 17:29:16 +0530 Message-ID: <20180516115914.GA25489@jerin> References: <20180516063955.6193-1-jerin.jacob@caviumnetworks.com> <20180516063955.6193-2-jerin.jacob@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "dev@dpdk.org" , "thomas@monjalon.net" , "Doherty, Declan" , "andy@warmcat.com" , "stable@dpdk.org" To: "De Lara Guarch, Pablo" Return-path: Content-Disposition: inline In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > > --- > > test/test/test_cryptodev.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/test/test/test_cryptodev.c b/test/test/test_cryptodev.c index > > 680082f2b..169ecdef3 100644 > > --- a/test/test/test_cryptodev.c > > +++ b/test/test/test_cryptodev.c > > @@ -6616,7 +6616,7 @@ test_multi_session_random_usage(void) > > ts_params->session_mpool); > > > > rte_memcpy(&ut_paramz[i].ut_params, &testsuite_params, > > - sizeof(struct crypto_unittest_params)); > > + sizeof(struct crypto_testsuite_params)); > > Actually, the source address is wrong. Makes sense. > The fix should be: > > - rte_memcpy(&ut_paramz[i].ut_params, &testsuite_params, > + rte_memcpy(&ut_paramz[i].ut_params, &unittest_params, > > Thanks for reporting this issue. Will send the v2. > Pablo