summaryrefslogtreecommitdiffstats
path: root/sys/dev/random/yarrow.c
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2005-12-20 21:41:52 +0000
committerps <ps@FreeBSD.org>2005-12-20 21:41:52 +0000
commit46c91127c85ed485d2195ee8fc2f88f6a23ec918 (patch)
treeb796b749704c3e811aff24db132665fd3285a303 /sys/dev/random/yarrow.c
parent0d8b5918f54117f6b47bae8aa0cbbe736749ca9e (diff)
downloadFreeBSD-src-46c91127c85ed485d2195ee8fc2f88f6a23ec918.zip
FreeBSD-src-46c91127c85ed485d2195ee8fc2f88f6a23ec918.tar.gz
Remove GIANT from device random.
Submitted by: ups
Diffstat (limited to 'sys/dev/random/yarrow.c')
-rw-r--r--sys/dev/random/yarrow.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/random/yarrow.c b/sys/dev/random/yarrow.c
index 3c5f831..ab10b21 100644
--- a/sys/dev/random/yarrow.c
+++ b/sys/dev/random/yarrow.c
@@ -57,7 +57,7 @@ static void generator_gate(void);
static void reseed(u_int);
/* The reseed thread mutex */
-static struct mtx random_reseed_mtx;
+struct mtx random_reseed_mtx;
/* Process a single stochastic event off the harvest queue */
void
@@ -258,11 +258,11 @@ reseed(u_int fastslow)
/* 7. Dump to seed file */
/* XXX Not done here yet */
- /* Release the reseed mutex */
- mtx_unlock(&random_reseed_mtx);
-
/* Unblock the device if it was blocked due to being unseeded */
random_yarrow_unblock();
+
+ /* Release the reseed mutex */
+ mtx_unlock(&random_reseed_mtx);
}
/* Internal function to return processed entropy from the PRNG */
OpenPOWER on IntegriCloud