Commit 6044c319 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Jonathan Corbet

parisc-eisa_eeprom: BKL pushdown

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 7bcc3209
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/miscdevice.h> #include <linux/miscdevice.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/smp_lock.h>
#include <linux/fs.h> #include <linux/fs.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
...@@ -83,6 +84,8 @@ static int eisa_eeprom_ioctl(struct inode *inode, struct file *file, ...@@ -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) static int eisa_eeprom_open(struct inode *inode, struct file *file)
{ {
cycle_kernel_lock();
if (file->f_mode & 2) if (file->f_mode & 2)
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment