Skip to content
Snippets Groups Projects
Commit 662f2f13 authored by Yi Yang's avatar Yi Yang Committed by Herbert Xu
Browse files

crypto: pcrypt - Call crypto layer directly when padata_do_parallel() return -EBUSY


Since commit 8f4f68e7 ("crypto: pcrypt - Fix hungtask for
PADATA_RESET"), the pcrypt encryption and decryption operations return
-EAGAIN when the CPU goes online or offline. In alg_test(), a WARN is
generated when pcrypt_aead_decrypt() or pcrypt_aead_encrypt() returns
-EAGAIN, the unnecessary panic will occur when panic_on_warn set 1.
Fix this issue by calling crypto layer directly without parallelization
in that case.

Fixes: 8f4f68e7 ("crypto: pcrypt - Fix hungtask for PADATA_RESET")
Signed-off-by: default avatarYi Yang <yiyang13@huawei.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 288e3721
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment