diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2015-07-14 20:45:24 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2015-07-14 20:45:24 +0000 |
| commit | bc41a24735e0f37e5c5d9f08009027e0dc71c034 (patch) | |
| tree | 53b44adec05b22902eadfe9941022118e807d3e0 /sys/dev/random | |
| parent | 838bff69e3f489eab4b868f5762324d0ccdf911e (diff) | |
Notes
Diffstat (limited to 'sys/dev/random')
| -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 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; } |
