]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: sun8i-ce - move fallback ahash_request to the end of the struct
authorOvidiu Panait <ovidiu.panait.oss@gmail.com>
Fri, 16 May 2025 12:06:56 +0000 (15:06 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:07:07 +0000 (11:07 +0100)
commit159fc2fe34ab20c1b1533c2b60298148f82ce0af
tree4f1726fdd39c26e08a22f4e067b3f471ca34d040
parente732b47f245a865977046ed59c12abf8767dc7c8
crypto: sun8i-ce - move fallback ahash_request to the end of the struct

[ Upstream commit c822831b426307a6ca426621504d3c7f99765a39 ]

'struct ahash_request' has a flexible array at the end, so it must be the
last member in a struct, to avoid overwriting other struct members.

Therefore, move 'fallback_req' to the end of the 'sun8i_ce_hash_reqctx'
struct.

Fixes: 56f6d5aee88d ("crypto: sun8i-ce - support hash algorithms")
Signed-off-by: Ovidiu Panait <ovidiu.panait.oss@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h