On Tue, Sep 13, 2022 at 04:03:47PM +0800, Peter Harliman Liem wrote: > >From commit d03c54419274 ("dma-mapping: disallow .map_sg > operations from returning zero on error"), dma_map_sg() > produces warning if size is 0. This results in visible > warnings if crypto length is zero. > To avoid that, we avoid calling dma_map_sg if size is zero. > > Signed-off-by: Peter Harliman Liem <pliem@xxxxxxxxxxxxx> > --- > v3: > Remove fixes tag > Add corresponding change for dma_unmap_sg > v2: > Add fixes tag > > .../crypto/inside-secure/safexcel_cipher.c | 44 +++++++++++++------ > 1 file changed, 31 insertions(+), 13 deletions(-) All applied. Thanks. -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt