From: Arnd Bergmann Date: Tue, 20 May 2008 17:16:43 +0000 (+0200) Subject: serio: BKL pushdown X-Git-Tag: v2.6.27-rc1~1103^2~29 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9edca64b724db74373f0c9ef7cb044a5f221a4a3;p=linux-2.6-omap-h63xx.git serio: BKL pushdown Signed-off-by: Arnd Bergmann --- diff --git a/drivers/input/serio/serio_raw.c b/drivers/input/serio/serio_raw.c index 0403622ae26..c9397c8ee97 100644 --- a/drivers/input/serio/serio_raw.c +++ b/drivers/input/serio/serio_raw.c @@ -10,6 +10,7 @@ */ #include +#include #include #include #include @@ -81,9 +82,10 @@ static int serio_raw_open(struct inode *inode, struct file *file) struct serio_raw_list *list; int retval = 0; + lock_kernel(); retval = mutex_lock_interruptible(&serio_raw_mutex); if (retval) - return retval; + goto out_bkl; if (!(serio_raw = serio_raw_locate(iminor(inode)))) { retval = -ENODEV; @@ -108,6 +110,8 @@ static int serio_raw_open(struct inode *inode, struct file *file) out: mutex_unlock(&serio_raw_mutex); +out_bkl: + unlock_kernel(); return retval; }