crypto: sun8i-ss - fix infinite loop in sun8i_ss_setup_ivs()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 10 Jun 2022 18:27:15 +0000 (21:27 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 17 Jun 2022 09:19:20 +0000 (17:19 +0800)
commitd61a7b3decf7f0cf4121a7204303deefd2c7151b
tree807cef3c23e5c722ec87624b56a08170dd7edd78
parentd64de9773c18409d2161228242968ff3ebe3707e
crypto: sun8i-ss - fix infinite loop in sun8i_ss_setup_ivs()

There is no i decrement in while (i >= 0) loop.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Fixes: 359e893e8af4 ("crypto: sun8i-ss - rework handling of IV")
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-cipher.c