commit | 43b970fa82131ab4f42789a06bfd68dbc6f2a829 | [log] [tgz] |
---|---|---|
author | Chuhong Yuan <hslester96@gmail.com> | Thu Aug 08 16:00:22 2019 +0800 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Thu Aug 15 21:52:13 2019 +1000 |
tree | c2c998968c1ee53a4d60616a36059bd6dd0f3d9e | |
parent | 03a3bb7ae63150230c5de645dc95e673ebf17e1a [diff] |
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>