]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: cryptd - Use refcount_t for refcount
authorChuhong Yuan <hslester96@gmail.com>
Thu, 8 Aug 2019 08:00:22 +0000 (16:00 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 15 Aug 2019 11:52:13 +0000 (21:52 +1000)
commitf49e5a8970b29111eba40d67296ebb8489033854
treec2c998968c1ee53a4d60616a36059bd6dd0f3d9e
parent60f2a29a733a50847789fa8e798e6bbb17dde232
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>
crypto/cryptd.c