crypto: pcrypt - Make tfm_count an atomic_t
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 May 2015 12:34:22 +0000 (20:34 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 25 May 2015 10:41:25 +0000 (18:41 +0800)
commita5a22e57f6d8f6f84bcf98dc11d44813e35caa11
tree108bf12be88f6b5fbc4eacfff9e9a5d8e1ede794
parent30e4c010aefdbb81b2aaf64758850432eb289f47
crypto: pcrypt - Make tfm_count an atomic_t

The variable tfm_count is accessed by multiple threads without
locking.  This patch converts it to an atomic_t.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/pcrypt.c