Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88421
b: refs/heads/master
c: 893f112
h: refs/heads/master
i:
  88419: 03c7bdf
v: v3
  • Loading branch information
Ralph Wuerthner authored and Heiko Carstens committed Apr 17, 2008
1 parent 70d11b3 commit fae0476
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c10fde0d9e2112c25052a8742e893ec5965c0007
refs/heads/master: 893f11286644780fc7d6d415e537644da7bdaaf8
4 changes: 4 additions & 0 deletions trunk/drivers/char/hw_random/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ static ssize_t rng_dev_read(struct file *filp, char __user *buf,
err = -EAGAIN;
if (!bytes_read && (filp->f_flags & O_NONBLOCK))
goto out;
if (bytes_read < 0) {
err = bytes_read;
goto out;
}

err = -EFAULT;
while (bytes_read && size) {
Expand Down

0 comments on commit fae0476

Please sign in to comment.