mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
message-i2o-i2o_config: BKL pushdown
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
parent
f18f81daba
commit
b78032a7e5
1 changed files with 2 additions and 0 deletions
|
@ -1061,6 +1061,7 @@ static int cfg_open(struct inode *inode, struct file *file)
|
|||
if (!tmp)
|
||||
return -ENOMEM;
|
||||
|
||||
lock_kernel();
|
||||
file->private_data = (void *)(i2o_cfg_info_id++);
|
||||
tmp->fp = file;
|
||||
tmp->fasync = NULL;
|
||||
|
@ -1074,6 +1075,7 @@ static int cfg_open(struct inode *inode, struct file *file)
|
|||
spin_lock_irqsave(&i2o_config_lock, flags);
|
||||
open_files = tmp;
|
||||
spin_unlock_irqrestore(&i2o_config_lock, flags);
|
||||
unlock_kernel();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue