From bc41a24735e0f37e5c5d9f08009027e0dc71c034 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Tue, 14 Jul 2015 20:45:24 +0000 Subject: 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 --- sys/dev/random/randomdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/random/randomdev.c') diff --git a/sys/dev/random/randomdev.c b/sys/dev/random/randomdev.c index f3339aa408279..43f905e052215 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; } -- cgit v1.3