summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2023-02-16 18:35:23 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2023-03-14 17:06:42 +0800
commit9807e49b6aab3451b00a99ced42acb4a535e8e22 (patch)
treed1952621c681e9d989c8092a5b4ed4a2af6ba677 /drivers
parent1085680bbb7a5235351937bea938c7051b443103 (diff)
downloadlinux-stable-9807e49b6aab3451b00a99ced42acb4a535e8e22.tar.gz
linux-stable-9807e49b6aab3451b00a99ced42acb4a535e8e22.tar.bz2
linux-stable-9807e49b6aab3451b00a99ced42acb4a535e8e22.zip
crypto: rng - Count error stats differently
Move all stat code specific to rng into the rng code. While we're at it, change the stats so that bytes and counts are always incremented even in case of error. This allows the reference counting to be removed as we can now increment the counters prior to the operation. After the operation we simply increase the error count if necessary. This is safe as errors can only occur synchronously (or rather, the existing code already ignored asynchronous errors which are only visible to the callback function). Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions