crypto: caam - pass the correct buffer length
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 30 Nov 2015 13:03:58 +0000 (11:03 -0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 4 Dec 2015 14:29:56 +0000 (22:29 +0800)
commitf456cd2dc8578f989ef12964c11aa7b2fafbc319
treed2e7fe744185f7035b4cab5cf53ef03fc79b8102
parent1a07834024dfca5c4bed5de8f8714306e0a11836
crypto: caam - pass the correct buffer length

When buffer 0 is used we should use buflen_0 instead of buflen_1.

Fix it.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamhash.c