diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-01-01 16:16:14 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-01-01 16:16:14 +0000 |
commit | d506a716726ff6287a85d97fb40be9e571aa8ab0 (patch) | |
tree | 1657f07dca98702ab0e96583f3b5c5737da1635e /sys | |
parent | 02f51811531313ea061573e065d56e2301d652f7 (diff) |
don't count on MFS in add_blkdev_randomness
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/rnd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/rnd.c b/sys/dev/rnd.c index cb912b4327d..cf4912c9cfb 100644 --- a/sys/dev/rnd.c +++ b/sys/dev/rnd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rnd.c,v 1.12 1996/12/28 19:06:28 niklas Exp $ */ +/* $OpenBSD: rnd.c,v 1.13 1997/01/01 16:16:13 mickey Exp $ */ /* * random.c -- A strong random number generator @@ -573,8 +573,9 @@ add_blkdev_randomness(dev) /* * Happens before randomattach() has been run and then later * when NODEV buffers get fed to biodone(). XXX Howcome? + * XXX don't count on mfs (major==255) */ - if (dev == NODEV || blkdev_timer_state == NULL) + if (dev == NODEV || major(dev) == 255 || blkdev_timer_state == NULL) return; #ifdef DIAGNOSTIC |