Skip to content

Commit

Permalink
uml-random: BKL pushdown
Browse files Browse the repository at this point in the history
Signed-off-by: Arnd Bergmann <[email protected]>
  • Loading branch information
arndb authored and Jonathan Corbet committed Jul 2, 2008
1 parent bd6859f commit 7eb500d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 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 7eb500d

Please sign in to comment.