mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
hwrng: core - Fix current_rng init/cleanup race yet again
The kref solution is still buggy because we were only focusing on the register/unregister race. The same race affects the setting of current_rng through sysfs. This patch fixes it by using kref_get_unless_zero. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
77584ee574
commit
15b66cd542
1 changed files with 11 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue