Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

parisc-eisa_eeprom: BKL pushdown



Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 7bcc3209
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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>
@@ -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;