Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 15b66cd5 authored by Herbert Xu's avatar Herbert Xu
Browse files

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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 77584ee5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment