crypto: caam - fix addressing of struct member
authorCristian Stoica <cristian.stoica@freescale.com>
Thu, 14 Aug 2014 10:51:57 +0000 (13:51 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Oct 2014 06:36:43 +0000 (08:36 +0200)
commitcad4e11a9778eee2e8c52e1df7bf1008fb49a580
tree95cfebc40b19d0fc0b20e3700e04b84f258bed6e
parent914435e6a2648d4f78aba661f9a5d178a011e35a
crypto: caam - fix addressing of struct member

commit 4451d494b1910bf7b7f8381a637d0fe6d2142467 upstream.

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

Signed-off-by: Cristian Stoica <cristian.stoica@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/caam/caamhash.c