]> git.karo-electronics.de Git - karo-tx-linux.git/commit
crypto: marvell/cesa - initialize hash states
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Thu, 17 Mar 2016 09:21:35 +0000 (10:21 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 17 Mar 2016 11:09:04 +0000 (19:09 +0800)
commitb0ef51067cb4fa51867ede1bac1d58b3dfb42f31
tree99bdbd61fd52af516358cb4910eff5c427667770
parent7850c91b175d765f09cea3a02a20c7779c79c11d
crypto: marvell/cesa - initialize hash states

->export() might be called before we have done an update operation,
and in this case the ->state field is left uninitialized.
Put the correct default value when initializing the request.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/hash.c