]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: sun8i-ss - fix error codes in allocate_flows()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 18 May 2022 17:33:44 +0000 (20:33 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 10 Jun 2022 08:40:16 +0000 (16:40 +0800)
commitba6b16a4b9edc69cc940a7f1b0a1b67e83be92a8
treef207958ee66d234d281cbf07ff89ef41e55ef495
parent5b60b134455072d9fc466ee5f0911a9cdf1285ed
crypto: sun8i-ss - fix error codes in allocate_flows()

These failure paths should return -ENOMEM.  Currently they return
success.

Fixes: ac5d04edd6f3 ("crypto: sun8i-ss - rework handling of IV")
Fixes: 8fcfe2ced02c ("crypto: sun8i-ss - do not allocate memory when handling hash requests")
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-core.c