Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 9a69b7ae authored by Jia-Ju Bai's avatar Jia-Ju Bai Committed by Herbert Xu
Browse files

crypto: user - Replace GFP_ATOMIC with GFP_KERNEL in crypto_report


After checking all possible call chains to crypto_report here,
my tool finds that crypto_report is never called in atomic context.
And crypto_report calls crypto_alg_match which calls down_read,
thus it proves again that crypto_report can call functions which may sleep.
Thus GFP_ATOMIC is not necessary, and it can be replaced with GFP_KERNEL.

This is found by a static analysis tool named DCNS written by myself.

Signed-off-by: default avatarJia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 1ca28098
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment