From 76e8ed836071337e118fcc071569c21581a630a2 Mon Sep 17 00:00:00 2001 From: mickey Date: Wed, 1 Jan 1997 16:16:13 +0000 Subject: [PATCH] don't count on MFS in add_blkdev_randomness --- sys/dev/rnd.c | 5 +++-- 1 file 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 -- 2.20.1