]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
crypto: drbg - Delete unused ctx from struct sdesc
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 19 Nov 2025 04:38:22 +0000 (12:38 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 24 Nov 2025 09:43:40 +0000 (17:43 +0800)
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 <gustavoars@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/drbg.c

index 511a27c91813be9b9402f5e9f1ae2f4be31900ab..1d433dae9955793c5420f635f872e36fb0c494d6 100644 (file)
@@ -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)