Skip to content

Commit b64dc04

Browse files
jamieilesherbertx
authored andcommitted
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>
1 parent 30343ef commit b64dc04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/crypto/picoxcell_crypto.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1242,8 +1242,8 @@ static void spacc_spacc_complete(unsigned long data)
12421242
spin_unlock_irqrestore(&engine->hw_lock, flags);
12431243

12441244
list_for_each_entry_safe(req, tmp, &completed, list) {
1245-
req->complete(req);
12461245
list_del(&req->list);
1246+
req->complete(req);
12471247
}
12481248
}
12491249

0 commit comments

Comments
 (0)