]> Gentwo Git Trees - linux/.git/commit
crypto: deflate - Use struct_size to improve deflate_alloc_stream
authorThorsten Blum <thorsten.blum@linux.dev>
Thu, 30 Oct 2025 16:32:17 +0000 (17:32 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 6 Nov 2025 06:31:08 +0000 (14:31 +0800)
commitb6410c1e50164da0542b671fc14caf4cff1c4819
treeb65e160262e7513c2a7c2a7a6324558a40e7d455
parent9fc6290117259a8dbf8247cb54559df62fd1550f
crypto: deflate - Use struct_size to improve deflate_alloc_stream

Use struct_size(), which provides additional compile-time checks for
structures with flexible array members (e.g., __must_be_array()), to
calculate the allocation size for a new 'deflate_stream'.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/deflate.c