From: Arnd Bergmann Date: Tue, 20 May 2008 17:15:42 +0000 (+0200) Subject: bvme6000-rtc: BKL pushdown X-Git-Tag: v2.6.27-rc1~1103^2~73 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=122bc5eaf81a3870f6cc00d2e5e97f32f92e636b;p=linux-2.6-omap-h63xx.git bvme6000-rtc: BKL pushdown Signed-off-by: Arnd Bergmann --- diff --git a/arch/m68k/bvme6000/rtc.c b/arch/m68k/bvme6000/rtc.c index a812d03879f..e8ac3f7d72d 100644 --- a/arch/m68k/bvme6000/rtc.c +++ b/arch/m68k/bvme6000/rtc.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -140,10 +141,14 @@ static int rtc_ioctl(struct inode *inode, struct file *file, unsigned int cmd, static int rtc_open(struct inode *inode, struct file *file) { - if(rtc_status) + lock_kernel(); + if(rtc_status) { + unlock_kernel(); return -EBUSY; + } rtc_status = 1; + unlock_kernel(); return 0; }