Skip to content

Commit c822831

Browse files
ovpanaitherbertx
authored andcommitted
crypto: sun8i-ce - move fallback ahash_request to the end of the struct
'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: 56f6d5a ("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>
1 parent d15cbe7 commit c822831

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ struct sun8i_ce_hash_tfm_ctx {
308308
* @flow: the flow to use for this request
309309
*/
310310
struct sun8i_ce_hash_reqctx {
311-
struct ahash_request fallback_req;
312311
int flow;
312+
struct ahash_request fallback_req; // keep at the end
313313
};
314314

315315
/*

0 commit comments

Comments
 (0)