Skip to content
Snippets Groups Projects
Commit 43b970fa authored by Chuhong Yuan's avatar Chuhong Yuan Committed by Herbert Xu
Browse files

crypto: cryptd - Use refcount_t for refcount


Reference counters are preferred to use refcount_t instead of
atomic_t.
This is because the implementation of refcount_t can prevent
overflows and detect possible use-after-free.
So convert atomic_t ref counters to refcount_t.

Signed-off-by: default avatarChuhong Yuan <hslester96@gmail.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 03a3bb7a
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment