Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100336
b: refs/heads/master
c: 122bc5e
h: refs/heads/master
v: v3
  • Loading branch information
Arnd Bergmann authored and Jonathan Corbet committed Jun 20, 2008
1 parent 66fd87d commit ee72980
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 556889a4ae89d5f2adf98cac58ecf9326b0d0297
refs/heads/master: 122bc5eaf81a3870f6cc00d2e5e97f32f92e636b
7 changes: 6 additions & 1 deletion trunk/arch/m68k/bvme6000/rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <linux/errno.h>
#include <linux/miscdevice.h>
#include <linux/slab.h>
#include <linux/smp_lock.h>
#include <linux/ioport.h>
#include <linux/capability.h>
#include <linux/fcntl.h>
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit ee72980

Please sign in to comment.