Skip to content

Commit

Permalink
parisc-eisa_eeprom: 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 7bcc320 commit 6044c31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/parisc/eisa_eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <linux/kernel.h>
#include <linux/miscdevice.h>
#include <linux/slab.h>
#include <linux/smp_lock.h>
#include <linux/fs.h>
#include <asm/io.h>
#include <asm/uaccess.h>
Expand Down Expand Up @@ -83,6 +84,8 @@ static int eisa_eeprom_ioctl(struct inode *inode, struct file *file,

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

if (file->f_mode & 2)
return -EINVAL;

Expand Down

0 comments on commit 6044c31

Please sign in to comment.