]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commitaba973c69e3658e3190d8983eed7dddd3c44dd1e
treeadef831ec7aa34c422be804f172d74fca107655b
parent591b95af3da027412be17ecbcb4dbd33990b557c
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