Skip to content

Commit 680cd3e

Browse files
committed
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>
1 parent c637f3e commit 680cd3e

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

crypto/drbg.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1443,7 +1443,6 @@ static void drbg_kcapi_set_entropy(struct crypto_rng *tfm,
14431443
#if defined(CONFIG_CRYPTO_DRBG_HASH) || defined(CONFIG_CRYPTO_DRBG_HMAC)
14441444
struct sdesc {
14451445
struct shash_desc shash;
1446-
char ctx[];
14471446
};
14481447

14491448
static int drbg_init_hash_kernel(struct drbg_state *drbg)

0 commit comments

Comments
 (0)