Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264763
b: refs/heads/master
c: f554ff8
h: refs/heads/master
i:
  264761: a095d57
  264759: a31f709
v: v3
  • Loading branch information
Amit Nagal authored and Jiri Kosina committed Sep 27, 2011
1 parent 58be3e6 commit 1a5a25c
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 9561f7faa45cb855b1ba83a4acf3f2ad3665e71f
refs/heads/master: f554ff80339b4005856e6a86454d6ea2bb962ee5
4 changes: 3 additions & 1 deletion trunk/drivers/hid/hidraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,10 @@ static int hidraw_open(struct inode *inode, struct file *file)
dev = hidraw_table[minor];
if (!dev->open++) {
err = hid_hw_power(dev->hid, PM_HINT_FULLON);
if (err < 0)
if (err < 0) {
dev->open--;
goto out_unlock;
}

err = hid_hw_open(dev->hid);
if (err < 0) {
Expand Down

0 comments on commit 1a5a25c

Please sign in to comment.