Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100323
b: refs/heads/master
c: a30427d
h: refs/heads/master
i:
  100321: ebf14c9
  100319: ecf9cbe
v: v3
  • Loading branch information
Jonathan Corbet committed Jun 20, 2008
1 parent 9ff1159 commit 5820b60
Show file tree
Hide file tree
Showing 2 changed files with 3 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: f2b9857eee17797541b845782ade4d7a9d50f843
refs/heads/master: a30427d92d0bc152b833088e4a305bbeb1a0c162
2 changes: 2 additions & 0 deletions trunk/fs/char_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,8 @@ static int chrdev_open(struct inode *inode, struct file *filp)
return -ENXIO;
new = container_of(kobj, struct cdev, kobj);
spin_lock(&cdev_lock);
/* Check i_cdev again in case somebody beat us to it while
we dropped the lock. */
p = inode->i_cdev;
if (!p) {
inode->i_cdev = p = new;
Expand Down

0 comments on commit 5820b60

Please sign in to comment.