From 2dc842605a68826c02432b1570669a18853036bd Mon Sep 17 00:00:00 2001 From: Arnd Bergmann Date: Tue, 20 May 2008 19:16:11 +0200 Subject: [PATCH] --- yaml --- r: 100358 b: refs/heads/master c: b9bde77a6a4f76b767d4363a5f74127528426159 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/macintosh/smu.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index d280a1c091bf..7af9a366b908 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 600bf8140c22e473ef0806ae45214aaaf53e0da3 +refs/heads/master: b9bde77a6a4f76b767d4363a5f74127528426159 diff --git a/trunk/drivers/macintosh/smu.c b/trunk/drivers/macintosh/smu.c index 77ad192962c5..b82fcd210bf3 100644 --- a/trunk/drivers/macintosh/smu.c +++ b/trunk/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; }