Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100390
b: refs/heads/master
c: 7eb500d
h: refs/heads/master
v: v3
  • Loading branch information
Arnd Bergmann authored and Jonathan Corbet committed Jul 2, 2008
1 parent f0fd6f8 commit f7f51e0
Show file tree
Hide file tree
Showing 2 changed files with 4 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: bd6859fe836491d20ea6e57fee93e0e08ee69443
refs/heads/master: 7eb500d1a0408c37d0c0360f066f8b7701835d68
3 changes: 3 additions & 0 deletions trunk/arch/um/drivers/random.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* of the GNU General Public License, incorporated herein by reference.
*/
#include <linux/sched.h>
#include <linux/smp_lock.h>
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/interrupt.h>
Expand All @@ -33,6 +34,8 @@ static DECLARE_WAIT_QUEUE_HEAD(host_read_wait);

static int rng_dev_open (struct inode *inode, struct file *filp)
{
cycle_kernel_lock();

/* enforce read-only access to this chrdev */
if ((filp->f_mode & FMODE_READ) == 0)
return -EINVAL;
Expand Down

0 comments on commit f7f51e0

Please sign in to comment.