From: Arnd Bergmann Date: Tue, 20 May 2008 17:16:29 +0000 (+0200) Subject: openprom: BKL pushdown X-Git-Tag: v2.6.27-rc1~1103^2~38 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bcc3209be82d69361a944c57caeb548b35c7f04;p=linux-2.6 openprom: BKL pushdown Signed-off-by: Arnd Bergmann --- diff --git a/drivers/sbus/char/openprom.c b/drivers/sbus/char/openprom.c index fbfeb89a6f..29dc735e1a 100644 --- a/drivers/sbus/char/openprom.c +++ b/drivers/sbus/char/openprom.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -689,9 +690,11 @@ static int openprom_open(struct inode * inode, struct file * file) if (!data) return -ENOMEM; + lock_kernel(); data->current_node = of_find_node_by_path("/"); data->lastnode = data->current_node; file->private_data = (void *) data; + unlock_kernel(); return 0; }