Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282810
b: refs/heads/master
c: 342ff28
h: refs/heads/master
v: v3
  • Loading branch information
Brian Norris authored and David Woodhouse committed Jan 9, 2012
1 parent f318dd9 commit 96f3539
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 8c3423359644d01cfba3a401e403c549c3f88ac4
refs/heads/master: 342ff28f5a2e5aa3236617bd2bddf6c749677ef2
3 changes: 2 additions & 1 deletion trunk/drivers/mtd/mtd_blkdevs.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ static int blktrans_open(struct block_device *bdev, fmode_t mode)

mutex_lock(&dev->lock);

if (dev->open++)
if (dev->open)
goto unlock;

kref_get(&dev->ref);
Expand All @@ -235,6 +235,7 @@ static int blktrans_open(struct block_device *bdev, fmode_t mode)
goto error_release;

unlock:
dev->open++;
mutex_unlock(&dev->lock);
blktrans_dev_put(dev);
return ret;
Expand Down

0 comments on commit 96f3539

Please sign in to comment.