]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: sun8i-ss - Fix error codes for dma_mapping_error()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 18 May 2022 17:33:54 +0000 (20:33 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 10 Jun 2022 08:40:16 +0000 (16:40 +0800)
commitb22697a27c2144fcfb7a1112bd5f8b3035dbac6f
tree16225d9028e5277baeb7d92fcee173c52043be31
parentba6b16a4b9edc69cc940a7f1b0a1b67e83be92a8
crypto: sun8i-ss - Fix error codes for dma_mapping_error()

If there is a dma_mapping_error() then return negative error codes.
Currently this code returns success.

Fixes: 756dbd1a759d ("crypto: sun8i-ss - add hmac(sha1)")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Tested-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c