diff options
author | Jamie Iles | 2011-08-02 12:29:06 +0200 |
---|---|---|
committer | Herbert Xu | 2011-08-10 13:00:27 +0200 |
commit | b64dc04beba30947dc80745dcb95ae3c04fd18cf (patch) | |
tree | 754ab3746c524f42d045491be7df01cde3c0f1fe /drivers/crypto/picoxcell_crypto.c | |
parent | crypto: picoxcell - support for device tree matching (diff) | |
download | kernel-qcow2-linux-b64dc04beba30947dc80745dcb95ae3c04fd18cf.tar.gz kernel-qcow2-linux-b64dc04beba30947dc80745dcb95ae3c04fd18cf.tar.xz kernel-qcow2-linux-b64dc04beba30947dc80745dcb95ae3c04fd18cf.zip |
crypto: picoxcell - fix possible invalid pointer dereference
The completion callback will free the request so we must remove it from
the completion list before calling the callback.
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/picoxcell_crypto.c')
-rw-r--r-- | drivers/crypto/picoxcell_crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/picoxcell_crypto.c b/drivers/crypto/picoxcell_crypto.c index 017340c3b715..a2b553eabbdb 100644 --- a/drivers/crypto/picoxcell_crypto.c +++ b/drivers/crypto/picoxcell_crypto.c @@ -1242,8 +1242,8 @@ static void spacc_spacc_complete(unsigned long data) spin_unlock_irqrestore(&engine->hw_lock, flags); list_for_each_entry_safe(req, tmp, &completed, list) { - req->complete(req); list_del(&req->list); + req->complete(req); } } |