crypto: zstd - replace zero-length array with flexible array member
Replace the deprecated zero-length array with a modern flexible array member in the struct zstd_ctx. No functional changes intended. Link: https://github.com/KSPP/linux/issues/78 Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Reviewed-by: Kees Cook <kees@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
committed by
Herbert Xu
parent
03ba056e63
commit
25f4e1d719
@@ -25,7 +25,7 @@ struct zstd_ctx {
|
||||
zstd_dctx *dctx;
|
||||
size_t wksp_size;
|
||||
zstd_parameters params;
|
||||
u8 wksp[0] __aligned(8);
|
||||
u8 wksp[] __aligned(8);
|
||||
};
|
||||
|
||||
static DEFINE_MUTEX(zstd_stream_lock);
|
||||
|
||||
Reference in New Issue
Block a user