]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: doc - adapt api sample to use async. op wait
authorGilad Ben-Yossef <gilad@benyossef.com>
Wed, 18 Oct 2017 07:00:52 +0000 (08:00 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 Nov 2017 14:11:23 +0000 (22:11 +0800)
commitbf0d6f56b6e60fa3e93e23dc956b9d744301dca6
treeadef831ec7aa34c422be804f172d74fca107655b
parent098e62187b2269c7dfd4c5a6d06ff6aeb7bbe97f
crypto: doc - adapt api sample to use async. op wait

The code sample is waiting for an async. crypto op completion.
Adapt sample to use the new generic infrastructure to do the same.

This also fixes a possible data coruption bug created by the
use of wait_for_completion_interruptible() without dealing
correctly with an interrupt aborting the wait prior to the
async op finishing.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Documentation/crypto/api-samples.rst