crypto: img-hash - Fix hash request context
authorWill Thomas <will.thomas@imgtec.com>
Fri, 5 Aug 2016 13:00:15 +0000 (14:00 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 9 Aug 2016 10:47:20 +0000 (18:47 +0800)
commitdd4f677b0c89280e66ab9bebf97c8c90fbc1c330
treebd1d9b95ac7c26d0ff3cecb15fe511e4e4957d96
parent10badea259fab2ec91a5e6bf1e568a01e4cb5263
crypto: img-hash - Fix hash request context

Move 0 length buffer to end of structure to stop overwriting
fallback request data. This doesn't cause a bug itself as the
buffer is never used alongside the fallback but should be
changed.

Signed-off-by: Will Thomas <will.thomas@imgtec.com>
Reviewed-by: James Hartley <james.hartley@imgtec.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/img-hash.c