Re: [PATCH] crypto: eip93 - use struct_size() and flexible array for ring allocation

From: Herbert Xu

Date: Fri Aug 14 2026 - 21:26:30 EST


On Mon, Aug 03, 2026 at 03:40:28PM -0700, Rosen Penev wrote:
> Embed the single ring as a flexible array member in eip93_device
> instead of allocating it separately. This simplifies the probe path
> and uses struct_size() for a single allocation.
>
> Assisted-by: opencode:big-pickle
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
> ---
> .../crypto/inside-secure/eip93/eip93-main.c | 6 +----
> .../crypto/inside-secure/eip93/eip93-main.h | 22 +++++++++----------
> 2 files changed, 12 insertions(+), 16 deletions(-)

Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt