]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: inside-secure - fix packed bit-field result descriptor
authorOfer Heifetz <oferh@marvell.com>
Sat, 2 Jul 2022 07:14:26 +0000 (10:14 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 8 Jul 2022 07:21:17 +0000 (15:21 +0800)
commit987809c96c9f7940fefd58426612dd2dace3bc73
tree3cf4f493bd946793f90f21821588e1e1d0a7dc52
parentd0a506334338946897270dfbf3f9eec98f0e7acf
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: Ofer Heifetz <oferh@marvell.com>
Acked-by: Antoine Tenart <atenart@kernel.org>
Acked-by: Antoine Tenart <atenart@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel.h