Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100332
b: refs/heads/master
c: 9a8bd2f
h: refs/heads/master
v: v3
  • Loading branch information
Arnd Bergmann authored and Jonathan Corbet committed Jun 20, 2008
1 parent f799810 commit 21ca62c
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 52e7c5e08201e20ddbe93cb1977869c38072bc2f
refs/heads/master: 9a8bd2f76cb78fd730337f1b3b9cbef101ce2dad
4 changes: 4 additions & 0 deletions trunk/arch/blackfin/mach-bf561/coreb.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <linux/device.h>
#include <linux/ioport.h>
#include <linux/module.h>
#include <linux/smp_lock.h>
#include <linux/uaccess.h>
#include <linux/fs.h>
#include <asm/dma.h>
Expand Down Expand Up @@ -196,6 +197,7 @@ static loff_t coreb_lseek(struct file *file, loff_t offset, int origin)

static int coreb_open(struct inode *inode, struct file *file)
{
lock_kernel();
spin_lock_irq(&coreb_lock);

if (coreb_status & COREB_IS_OPEN)
Expand All @@ -204,10 +206,12 @@ static int coreb_open(struct inode *inode, struct file *file)
coreb_status |= COREB_IS_OPEN;

spin_unlock_irq(&coreb_lock);
unlock_kernel();
return 0;

out_busy:
spin_unlock_irq(&coreb_lock);
unlock_kernel();
return -EBUSY;
}

Expand Down

0 comments on commit 21ca62c

Please sign in to comment.