]> git.baikalelectronics.ru Git - kernel.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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 30 Jan 2016 14:05:15 +0000 (22:05 +0800)
commitb7efd7998a31357fef6ac559b1ef47d1704f204c
tree9a9c372dd59104b12cf99828ed8a1ddcfb1b3c8c
parentd09c7f9685c1c300219b93971a35e53df2eb2259
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