Jonathan Cameron af955bf15d crypto: af_alg - Fix race around ctx->rcvused by making it atomic_t
This variable was increased and decreased without any protection.
Result was an occasional misscount and negative wrap around resulting
in false resource allocation failures.

Fixes: 7d2c3f54e6f6 ("crypto: af_alg - remove locking in async callback")
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2017-12-22 19:02:40 +11:00
..
2017-11-30 13:37:29 +01:00
2017-11-15 10:56:56 -08:00
2017-12-10 08:24:16 -08:00
2017-11-15 20:30:12 -08:00
2017-11-15 14:54:53 -08:00
2017-12-10 08:24:16 -08:00
2017-11-20 21:50:24 -10:00
2017-11-16 13:06:27 -08:00