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)
commitd2765e1b9ac4b2d5a5d5bf17f468c9b3566c3770
treef207958ee66d234d281cbf07ff89ef41e55ef495
parent13dc15a3f5fd7f884e4bfa8c011a0ae868df12ae
crypto: sun8i-ss - fix error codes in allocate_flows()

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

Fixes: 359e893e8af4 ("crypto: sun8i-ss - rework handling of IV")
Fixes: 8eec4563f152 ("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