mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 21:33:00 +00:00
uctrl: BKL pushdown
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
parent
25368ca579
commit
f138e4814a
@ -9,6 +9,7 @@
|
|||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
#include <linux/interrupt.h>
|
#include <linux/interrupt.h>
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
|
#include <linux/smp_lock.h>
|
||||||
#include <linux/ioport.h>
|
#include <linux/ioport.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/miscdevice.h>
|
#include <linux/miscdevice.h>
|
||||||
@ -211,8 +212,10 @@ uctrl_ioctl(struct inode *inode, struct file *file,
|
|||||||
static int
|
static int
|
||||||
uctrl_open(struct inode *inode, struct file *file)
|
uctrl_open(struct inode *inode, struct file *file)
|
||||||
{
|
{
|
||||||
|
lock_kernel();
|
||||||
uctrl_get_event_status();
|
uctrl_get_event_status();
|
||||||
uctrl_get_external_status();
|
uctrl_get_external_status();
|
||||||
|
unlock_kernel();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user