Re: [PATCH 2/4] crypto: cavium - Fix the parameter of dma_unmap_sg()

2021-03-03 Thread Herbert Xu
On Thu, Mar 04, 2021 at 10:18:51AM +0800, chenxiang (M) wrote: > > Thank you for reminding me about this. I didn't notice that it changes the > count passed to create_sg_component. > I have a change on this patch as follows, and please have a check on it: Yes this looks fine. Thanks, -- Email: H

Re: [PATCH 2/4] crypto: cavium - Fix the parameter of dma_unmap_sg()

2021-03-03 Thread chenxiang (M)
Hi Herbert, 在 2021/3/3 16:59, Herbert Xu 写道: On Tue, Feb 09, 2021 at 02:59:23PM +0800, chenxiang wrote: From: Xiang Chen For function dma_unmap_sg(), the parameter should be number of elements in the scatterlist prior to the mapping, not after the mapping. So fix this usage. Signed-off-by:

Re: [PATCH 2/4] crypto: cavium - Fix the parameter of dma_unmap_sg()

2021-03-03 Thread Herbert Xu
On Tue, Feb 09, 2021 at 02:59:23PM +0800, chenxiang wrote: > From: Xiang Chen > > For function dma_unmap_sg(), the parameter should be number of > elements in the scatterlist prior to the mapping, not after the mapping. > So fix this usage. > > Signed-off-by: Xiang Chen > --- > drivers/crypto