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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Feb 2016 22:22:41 +0000 (14:22 -0800)
commit9250afa47650e39ee56511b86450dd11b3217c3a
tree30a8f83793a266ed20d7a5e0da08ceea0c2ee04a
parent71eec872a94409c9a595b2a02a5d9eb8c9d335c5
crypto: algif_hash - wait for crypto_ahash_init() to complete

commit fe09786178f9df713a4b2dd6b93c0a722346bf5e upstream.

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

Signed-off-by: Rui Wang <rui.y.wang@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
crypto/algif_hash.c