Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211513
b: refs/heads/master
c: e42dee9
h: refs/heads/master
i:
  211511: 48ba527
v: v3
  • Loading branch information
Antonio Ospite authored and Jiri Kosina committed Oct 6, 2010
1 parent c68dd8e commit 4942391
Show file tree
Hide file tree
Showing 2 changed files with 7 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: d20d5ffab92f00188f360c44c791a5ffb988247c
refs/heads/master: e42dee9a99a3ecd32b5c027e8f7411fb5bc11eb6
6 changes: 6 additions & 0 deletions trunk/drivers/hid/hidraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ static ssize_t hidraw_write(struct file *file, const char __user *buffer, size_t
int ret = 0;

mutex_lock(&minors_lock);

if (!hidraw_table[minor]) {
ret = -ENODEV;
goto out;
}

dev = hidraw_table[minor]->hid;

if (!dev->hid_output_raw_report) {
Expand Down

0 comments on commit 4942391

Please sign in to comment.