diff options
author | Chuhong Yuan <hslester96@gmail.com> | 2019-08-08 16:00:22 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-08-15 21:52:13 +1000 |
commit | b852c19fb03b54077c8f650d7515ce4135c16f1f (patch) | |
tree | b208e7e877b0cce32d026a247528a22baa4ddd19 /crypto/asymmetric_keys/signature.c | |
parent | fa711c56054638f10f5dd11f746a04086c782554 (diff) | |
download | linux-crypto-b852c19fb03b54077c8f650d7515ce4135c16f1f.tar.gz linux-crypto-b852c19fb03b54077c8f650d7515ce4135c16f1f.zip |
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: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/asymmetric_keys/signature.c')
0 files changed, 0 insertions, 0 deletions