]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: omap - convert reqctx buffer to fixed-size array
authorThorsten Blum <thorsten.blum@linux.dev>
Sat, 4 Apr 2026 10:10:17 +0000 (12:10 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 12 Apr 2026 08:47:10 +0000 (16:47 +0800)
commit809c9b60cf03e083b1ae0c6aa4a369b2eeda9900
tree1a3e626fb1ba9d6abeb3f393815efce0223af3f3
parenta883b38a6f616a84d75213705c64d96c37536d74
crypto: omap - convert reqctx buffer to fixed-size array

The flexible array member 'buffer' in 'omap_sham_reqctx' is always
allocated with BUFLEN bytes. Replace the flexible array with a
fixed-size array and remove the now-redundant 'buflen' field.

Since 'struct omap_sham_reqctx' now includes the buffer, simplify
'reqsize' and 'statesize' and use an offsetof-based memcpy() in
omap_sham_export() and omap_sham_import().

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