Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100388
b: refs/heads/master
c: 78dccb4
h: refs/heads/master
v: v3
  • Loading branch information
Arnd Bergmann authored and Jonathan Corbet committed Jul 2, 2008
1 parent e0e4f77 commit a616cc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8702965848ed4bee27486a3e3d2ae34ebba6dd83
refs/heads/master: 78dccb46ddc2ff460c8b4d5ec0886964bd4b59e5
3 changes: 3 additions & 0 deletions trunk/arch/um/drivers/harddog_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ static int harddog_open(struct inode *inode, struct file *file)
int err = -EBUSY;
char *sock = NULL;

lock_kernel();
spin_lock(&lock);
if(timer_alive)
goto err;
Expand All @@ -82,9 +83,11 @@ static int harddog_open(struct inode *inode, struct file *file)

timer_alive = 1;
spin_unlock(&lock);
unlock_kernel();
return nonseekable_open(inode, file);
err:
spin_unlock(&lock);
unlock_kernel();
return err;
}

Expand Down

0 comments on commit a616cc1

Please sign in to comment.