Rusty Russell a027f30d72 hwrng: fix unregister race.
The previous patch added one potential problem: we can still be
reading from a hwrng when it's unregistered.  Add a wait for zero
in the hwrng_unregister path.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Amos Kong <akong@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2014-12-22 23:02:40 +11:00
..
2014-10-02 14:35:00 +08:00
2014-12-14 16:10:09 -08:00
2014-12-22 23:02:40 +11: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