From: Arnd Bergmann Date: Tue, 20 May 2008 17:16:14 +0000 (+0200) Subject: message-i2o-i2o_config: BKL pushdown X-Git-Tag: v2.6.27-rc1~1103^2~48 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b78032a7e52995b42d231d0064358eef16c9a8cc;p=linux-2.6 message-i2o-i2o_config: BKL pushdown Signed-off-by: Arnd Bergmann --- diff --git a/drivers/message/i2o/i2o_config.c b/drivers/message/i2o/i2o_config.c index c0fb77dc19..95b4c10858 100644 --- a/drivers/message/i2o/i2o_config.c +++ b/drivers/message/i2o/i2o_config.c @@ -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; }