summaryrefslogtreecommitdiff
path: root/sys/dev/random
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2015-07-14 20:45:24 +0000
committerEd Schouten <ed@FreeBSD.org>2015-07-14 20:45:24 +0000
commitbc41a24735e0f37e5c5d9f08009027e0dc71c034 (patch)
tree53b44adec05b22902eadfe9941022118e807d3e0 /sys/dev/random
parent838bff69e3f489eab4b868f5762324d0ccdf911e (diff)
Notes
Diffstat (limited to 'sys/dev/random')
-rw-r--r--sys/dev/random/randomdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c
index f3339aa40827..43f905e05221 100644
--- a/sys/dev/random/randomdev.c
+++ b/sys/dev/random/randomdev.c
@@ -168,7 +168,7 @@ read_random_uio(struct uio *uio, bool nonblock)
/* (Un)Blocking logic */
error = 0;
while (!random_alg_context.ra_seeded()) {
- if (flags & O_NONBLOCK) {
+ if (nonblock) {
error = EWOULDBLOCK;
break;
}