summaryrefslogtreecommitdiffstats
path: root/sys/dev/random/randomdev.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2013-10-08 22:14:07 +0000
committermarkm <markm@FreeBSD.org>2013-10-08 22:14:07 +0000
commit96f5566b8ee5cc7af6b65612eb13e6c52d7c6f2d (patch)
tree9a54587031c0869dab8a48ecf0c7bcf4ba6bcc0d /sys/dev/random/randomdev.c
parent7334895900372a7f012c15ba12cfd3a9875ea182 (diff)
downloadFreeBSD-src-96f5566b8ee5cc7af6b65612eb13e6c52d7c6f2d.zip
FreeBSD-src-96f5566b8ee5cc7af6b65612eb13e6c52d7c6f2d.tar.gz
Fix some just-noticed problems:
o Allow this to work with "nodevice random" by fixing where the MALLOC pool is defined. o Fix the explicit reseed code. This was correct as submitted, but in the project branch doesn't need to set the "seeded" bit as this is done correctly in the "unblock" function. o Remove some debug ifdeffing. o Adjust comments.
Diffstat (limited to 'sys/dev/random/randomdev.c')
-rw-r--r--sys/dev/random/randomdev.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c
index f37da70..0593f39 100644
--- a/sys/dev/random/randomdev.c
+++ b/sys/dev/random/randomdev.c
@@ -74,8 +74,6 @@ static struct cdevsw random_cdevsw = {
.d_name = "random",
};
-MALLOC_DEFINE(M_ENTROPY, "entropy", "Entropy harvesting buffers");
-
/* For use with make_dev(9)/destroy_dev(9). */
static struct cdev *random_dev;
OpenPOWER on IntegriCloud