From: Arnd Bergmann Date: Tue, 20 May 2008 17:16:11 +0000 (+0200) Subject: macintosh-smu: BKL pushdown X-Git-Tag: v2.6.27-rc1~1103^2~51 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=b9bde77a6a4f76b767d4363a5f74127528426159;p=linux-2.6-omap-h63xx.git macintosh-smu: BKL pushdown Signed-off-by: Arnd Bergmann --- diff --git a/drivers/macintosh/smu.c b/drivers/macintosh/smu.c index 77ad192962c..b82fcd210bf 100644 --- a/drivers/macintosh/smu.c +++ b/drivers/macintosh/smu.c @@ -19,6 +19,7 @@ * the userland interface */ +#include #include #include #include @@ -1083,10 +1084,12 @@ static int smu_open(struct inode *inode, struct file *file) pp->mode = smu_file_commands; init_waitqueue_head(&pp->wait); + lock_kernel(); spin_lock_irqsave(&smu_clist_lock, flags); list_add(&pp->list, &smu_clist); spin_unlock_irqrestore(&smu_clist_lock, flags); file->private_data = pp; + unlock_kernel(); return 0; }