crypto: algif_hash - wait for crypto_ahash_init() to complete
authorWang, Rui Y <rui.y.wang@intel.com>
Wed, 27 Jan 2016 09:08:37 +0000 (17:08 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 30 Jan 2016 14:05:15 +0000 (22:05 +0800)
commitfe09786178f9df713a4b2dd6b93c0a722346bf5e
tree9a9c372dd59104b12cf99828ed8a1ddcfb1b3c8c
parent00420a65fa2beb3206090ead86942484df2275f3
crypto: algif_hash - wait for crypto_ahash_init() to complete

hash_sendmsg/sendpage() need to wait for the completion
of crypto_ahash_init() otherwise it can cause panic.

Cc: stable@vger.kernel.org
Signed-off-by: Rui Wang <rui.y.wang@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/algif_hash.c