diff options
author | Gary R Hook <gary.hook@amd.com> | 2017-12-15 13:55:59 -0600 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-12-22 20:03:36 +1100 |
commit | 0e4b52942b1c76f89e0dcb829f72e123d0678f54 (patch) | |
tree | e7d0865a5ff09837efbba4ca00596312c1277166 /crypto/tcrypt.c | |
parent | 871df319bd48acb4ce48b8985136c8ba40af3a02 (diff) |
hwrng: core - Clean up RNG list when last hwrng is unregistered
Commit 142a27f0a731 added support for a "best" RNG, and in doing so
introduced a hang from rmmod/modprobe -r when the last RNG on the list
was unloaded.
When the hwrng list is depleted, return the global variables to their
original state and decrement all references to the object.
Fixes: 142a27f0a731 ("hwrng: core - Reset user selected rng by writing "" to rng_current")
Signed-off-by: Gary R Hook <gary.hook@amd.com>
Reviewed-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tcrypt.c')
0 files changed, 0 insertions, 0 deletions