提交 932be3e9 编写于 作者: O Ofer Heifetz 提交者: Herbert Xu

crypto: inside-secure - fix packed bit-field result descriptor

When mixing bit-field and none bit-filed in packed struct the
none bit-field starts at a distinct memory location, thus adding
an additional byte to the overall structure which is used in
memory zero-ing and other configuration calculations.

Fix this by removing the none bit-field that has a following
bit-field.
Signed-off-by: NOfer Heifetz <oferh@marvell.com>
Acked-by: NAntoine Tenart <atenart@kernel.org>
Acked-by: NAntoine Tenart <atenart@kernel.org>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 68740ab5
...@@ -497,15 +497,15 @@ struct result_data_desc { ...@@ -497,15 +497,15 @@ struct result_data_desc {
u32 packet_length:17; u32 packet_length:17;
u32 error_code:15; u32 error_code:15;
u8 bypass_length:4; u32 bypass_length:4;
u8 e15:1; u32 e15:1;
u16 rsvd0; u32 rsvd0:16;
u8 hash_bytes:1; u32 hash_bytes:1;
u8 hash_length:6; u32 hash_length:6;
u8 generic_bytes:1; u32 generic_bytes:1;
u8 checksum:1; u32 checksum:1;
u8 next_header:1; u32 next_header:1;
u8 length:1; u32 length:1;
u16 application_id; u16 application_id;
u16 rsvd1; u16 rsvd1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册