commit | ce8614a312ef750bb60677bb13680cb27d1c284b | [log] [tgz] |
---|---|---|
author | Eric Biggers <ebiggers@google.com> | Fri Dec 29 10:00:46 2017 -0600 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Fri Jan 05 18:43:09 2018 +1100 |
tree | 842f01d86dc235bcd80c8544969d9fffeaec30c5 | |
parent | 809778e02cd45d0625439fee67688f655627bb3c [diff] |
crypto: algapi - convert cra_refcnt to refcount_t Reference counters should use refcount_t rather than atomic_t, since the refcount_t implementation can prevent overflows, reducing the exploitability of reference leak bugs. crypto_alg.cra_refcount is a reference counter with the usual semantics, so switch it over to refcount_t. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>