]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerLuis Henriques <luis.henriques@canonical.com>
Thu, 25 Feb 2016 00:18:38 +0000 (00:18 +0000)
commitf5892ce337b51e5c916e15da88cd4cad50485b8a
tree2573e2d0f9f246a21a04f7b3394790bef001e220
parent7a2514f35cab3984077d185c5980bd6a99240bc3
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: Luis Henriques <luis.henriques@canonical.com>
crypto/algif_hash.c