Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100346
b: refs/heads/master
c: 78abb6a
h: refs/heads/master
v: v3
  • Loading branch information
Arnd Bergmann authored and Jonathan Corbet committed Jun 20, 2008
1 parent 04a92b9 commit 2b2f556
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 1d17bf0c08569e7aefd27df0179065fb955588c4
refs/heads/master: 78abb6ac919cee123e632d833a42d0312ccb2b0d
6 changes: 5 additions & 1 deletion trunk/drivers/sbus/char/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,13 @@ flash_read(struct file * file, char __user * buf,
static int
flash_open(struct inode *inode, struct file *file)
{
if (test_and_set_bit(0, (void *)&flash.busy) != 0)
lock_kernel();
if (test_and_set_bit(0, (void *)&flash.busy) != 0) {
unlock_kernel();
return -EBUSY;
}

unlock_kernel();
return 0;
}

Expand Down

0 comments on commit 2b2f556

Please sign in to comment.