Re: [PATCH v3 1/2] crypto: inside_secure - Avoid dma map if size is zero

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux