diff options
| author | Ovidiu Panait <ovidiu.panait.oss@gmail.com> | 2025-05-16 15:06:56 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-06-19 15:28:03 +0200 |
| commit | 5810e9d402c43a63c16ce949f9d9ff59fe6832e7 (patch) | |
| tree | 203bde2a3f8b512e1f060017973c99a773ea6a19 /drivers/crypto | |
| parent | 04a39a3c7d3788874f8d6b52884f7a53b564ba5d (diff) | |
| download | linux-5810e9d402c43a63c16ce949f9d9ff59fe6832e7.tar.gz linux-5810e9d402c43a63c16ce949f9d9ff59fe6832e7.tar.bz2 linux-5810e9d402c43a63c16ce949f9d9ff59fe6832e7.zip | |
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>
Diffstat (limited to 'drivers/crypto')
| -rw-r--r-- | drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h b/drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h index 93d4985def87..65cc1278ee15 100644 --- a/drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h +++ b/drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h @@ -293,8 +293,8 @@ struct sun8i_ce_hash_tfm_ctx { * @flow: the flow to use for this request */ struct sun8i_ce_hash_reqctx { - struct ahash_request fallback_req; int flow; + struct ahash_request fallback_req; // keep at the end }; /* |
