From: Arnd Bergmann Date: Tue, 20 May 2008 17:16:54 +0000 (+0200) Subject: uml-harddog: BKL pushdown X-Git-Tag: v2.6.27-rc1~1103^2~21 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=78dccb46ddc2ff460c8b4d5ec0886964bd4b59e5;p=linux-2.6-omap-h63xx.git uml-harddog: BKL pushdown Signed-off-by: Arnd Bergmann --- diff --git a/arch/um/drivers/harddog_kern.c b/arch/um/drivers/harddog_kern.c index a9ad4bd6d95..d332503fa1b 100644 --- a/arch/um/drivers/harddog_kern.c +++ b/arch/um/drivers/harddog_kern.c @@ -66,6 +66,7 @@ static int harddog_open(struct inode *inode, struct file *file) int err = -EBUSY; char *sock = NULL; + lock_kernel(); spin_lock(&lock); if(timer_alive) goto err; @@ -82,9 +83,11 @@ static int harddog_open(struct inode *inode, struct file *file) timer_alive = 1; spin_unlock(&lock); + unlock_kernel(); return nonseekable_open(inode, file); err: spin_unlock(&lock); + unlock_kernel(); return err; }