From ee72980b179396d932a3f3e073d78f6936600aef Mon Sep 17 00:00:00 2001 From: Arnd Bergmann Date: Tue, 20 May 2008 19:15:42 +0200 Subject: [PATCH] --- yaml --- r: 100336 b: refs/heads/master c: 122bc5eaf81a3870f6cc00d2e5e97f32f92e636b h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/m68k/bvme6000/rtc.c | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index f4d876faea2f..ed94c344cd6e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 556889a4ae89d5f2adf98cac58ecf9326b0d0297 +refs/heads/master: 122bc5eaf81a3870f6cc00d2e5e97f32f92e636b diff --git a/trunk/arch/m68k/bvme6000/rtc.c b/trunk/arch/m68k/bvme6000/rtc.c index a812d03879f8..e8ac3f7d72df 100644 --- a/trunk/arch/m68k/bvme6000/rtc.c +++ b/trunk/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; }