]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: algif_skcipher - Do not assume that req is unchanged
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 3 Feb 2016 13:39:24 +0000 (21:39 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 6 Feb 2016 07:23:55 +0000 (15:23 +0800)
commit55f5dab53099333f1913be788c78096e9ec54b65
tree19763d06c1961ff7e32af742aaf05a1b14af4402
parent64a3e371557081b466c14ba49490a3e2fbeb8c5d
crypto: algif_skcipher - Do not assume that req is unchanged

The async path in algif_skcipher assumes that the crypto completion
function will be called with the original request.  This is not
necessarily the case.  In fact there is no need for this anyway
since we already embed information into the request with struct
skcipher_async_req.

This patch adds a pointer to that struct and then passes it as
the data to the callback function.

Cc: stable@vger.kernel.org
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Tadeusz Struk <tadeusz.struk@intel.com>
crypto/algif_skcipher.c