diff options
author | ed <ed@FreeBSD.org> | 2015-07-14 20:45:24 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2015-07-14 20:45:24 +0000 |
commit | e04e9472994d19275efe40ddd75847b85274b41c (patch) | |
tree | 53b44adec05b22902eadfe9941022118e807d3e0 /sys/dev/random/randomdev.c | |
parent | 7f509f95ffafb0df2c09979bb1c6b6dbe934856f (diff) | |
download | FreeBSD-src-e04e9472994d19275efe40ddd75847b85274b41c.zip FreeBSD-src-e04e9472994d19275efe40ddd75847b85274b41c.tar.gz |
Fix the build after breaking it in r285549.
I performed the commit on a different system as where I wrote the
change. After pulling in the change from Phabricator, I didn't notice
that a single chunk did not apply.
Approved by: secteam (implicit, as intended change was approved)
Pointy hat to: me
Diffstat (limited to 'sys/dev/random/randomdev.c')
-rw-r--r-- | sys/dev/random/randomdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c index f3339aa..43f905e 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; } |