From 680cd3e28c62b2d753840c78221357e5ac9c128b Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Wed, 19 Nov 2025 12:38:22 +0800 Subject: [PATCH] crypto: drbg - Delete unused ctx from struct sdesc The ctx array in struct sdesc is never used. Delete it as it's bogus since the previous member ends with a flexible array. Reported-by: Gustavo A. R. Silva Signed-off-by: Herbert Xu --- crypto/drbg.c | 1 - 1 file changed, 1 deletion(-) diff --git a/crypto/drbg.c b/crypto/drbg.c index 511a27c91813..1d433dae9955 100644 --- a/crypto/drbg.c +++ b/crypto/drbg.c @@ -1443,7 +1443,6 @@ static void drbg_kcapi_set_entropy(struct crypto_rng *tfm, #if defined(CONFIG_CRYPTO_DRBG_HASH) || defined(CONFIG_CRYPTO_DRBG_HMAC) struct sdesc { struct shash_desc shash; - char ctx[]; }; static int drbg_init_hash_kernel(struct drbg_state *drbg)