aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorEric Biggers <[email protected]>2021-03-21 22:07:48 -0700
committerHerbert Xu <[email protected]>2021-04-02 18:28:12 +1100
commit30d0f6a956fc74bb2e948398daf3278c6b08c7e9 (patch)
treeac74a11ccca1fc3a2c1e5c1ee3ec2ec132f65c95 /tools/perf/scripts/python
parent10cb823bbacd2626cca8d89a7dba175c3ae5cf07 (diff)
crypto: rng - fix crypto_rng_reset() refcounting when !CRYPTO_STATS
crypto_stats_get() is a no-op when the kernel is compiled without CONFIG_CRYPTO_STATS, so pairing it with crypto_alg_put() unconditionally (as crypto_rng_reset() does) is wrong. Fix this by moving the call to crypto_stats_get() to just before the actual algorithm operation which might need it. This makes it always paired with crypto_stats_rng_seed(). Fixes: eed74b3eba9e ("crypto: rng - Fix a refcounting bug in crypto_rng_reset()") Cc: [email protected] Signed-off-by: Eric Biggers <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions