Herbert Xu 15b66cd542 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>
2014-12-26 08:33:34 +11:00
..
2014-10-02 14:35:00 +08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-10-02 14:35:00 +08:00
2014-10-02 14:35:00 +08:00
2014-11-20 22:39:41 +08:00
2008-07-18 00:46:09 -07:00
2011-07-28 01:26:30 -07:00
2014-10-02 14:35:00 +08:00