commit | a027f30d72f2c4d27d6dd9bd053205d3102de7d1 | [log] [tgz] |
---|---|---|
author | Rusty Russell <rusty@rustcorp.com.au> | Mon Dec 08 16:50:38 2014 +0800 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Mon Dec 22 23:02:40 2014 +1100 |
tree | c430933226d1f44da1cb2aca7c418a9baea8e17b | |
parent | 3a2c0ba5ad00c018c0bef39a2224aca950aa33f2 [diff] |
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>