Re: [PATCH] crypto: rockchip - drop redundant crypto_skcipher_ivsize() calls
From: Herbert Xu
Date: Fri Nov 14 2025 - 05:20:48 EST
On Wed, Nov 05, 2025 at 05:52:04PM +0300, Karina Yankevich wrote:
> The function already initialized the ivsize variable
> at the point of declaration, let's use it instead of
> calling crypto_skcipher_ivsize() extra couple times.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> Fixes: 57d67c6e8219 ("crypto: rockchip - rework by using crypto_engine")
> Signed-off-by: Karina Yankevich <k.yankevich@xxxxxx>
> Reviewed-by: Sergey Shtylyov <s.shtylyov@xxxxxx>
> ---
> drivers/crypto/rockchip/rk3288_crypto_skcipher.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
Patch 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