diff options
| author | Herbert Xu <herbert@gondor.apana.org.au> | 2025-11-19 12:38:22 +0800 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2025-11-24 17:43:40 +0800 |
| commit | 680cd3e28c62b2d753840c78221357e5ac9c128b (patch) | |
| tree | 2e498171ab3ae3336bbe579c84a6070c5682ed48 | |
| parent | c637f3e4a59d710ffd80da1c11d2ebed162d8ff0 (diff) | |
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 <gustavoars@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
| -rw-r--r-- | crypto/drbg.c | 1 |
1 files changed, 0 insertions, 1 deletions
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) |
