From: Herbert Xu Date: Wed, 19 Nov 2025 04:38:22 +0000 (+0800) Subject: crypto: drbg - Delete unused ctx from struct sdesc X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=680cd3e28c62b2d753840c78221357e5ac9c128b;p=thirdparty%2Flinux.git 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 --- diff --git a/crypto/drbg.c b/crypto/drbg.c index 511a27c91813b..1d433dae99557 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)