]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: caam - fix addressing of struct member
authorCristian Stoica <cristian.stoica@freescale.com>
Thu, 14 Aug 2014 10:51:57 +0000 (13:51 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 25 Aug 2014 12:34:06 +0000 (20:34 +0800)
commit51ca026d901f0101f5fe7317a9f9e7de17061942
tree271b6bcf0b8667e6fc370f91ffa04043b18a2c5e
parente31f81fd00804af83c3ac09923715e9a15acc2d1
crypto: caam - fix addressing of struct member

buf_0 and buf_1 in caam_hash_state are not next to each other.
Accessing buf_1 is incorrect from &buf_0 with an offset of only
size_of(buf_0). The same issue is also with buflen_0 and buflen_1

Cc: <stable@vger.kernel.org> # 3.13+
Signed-off-by: Cristian Stoica <cristian.stoica@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamhash.c