]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Feb 2016 22:28:37 +0000 (14:28 -0800)
commit3cc285f29844b00b0c02b7e048e134fcee56e051
tree43b48a24bf6613ba3458ac56e560d63913202ada
parentc1bce85f6736ea0a5c1fe6ca4168825e35806c1f
crypto: algif_skcipher - Do not assume that req is unchanged

commit ec69bbfb9902c32a5c1492f2b1b8ad032a66d724 upstream.

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.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
crypto/algif_skcipher.c