Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167414
b: refs/heads/master
c: b0e1495
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Kosina committed Oct 12, 2009
1 parent dc7c31f commit 381a6a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: ff9b00a226ccea66e6ce70e9083c42f5b6001f73
refs/heads/master: b0e14951ee0f6c29abc64b92ec7075a159ede37c
5 changes: 2 additions & 3 deletions trunk/drivers/hid/hidraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ static ssize_t hidraw_read(struct file *file, char __user *buffer, size_t count,
char *report;
DECLARE_WAITQUEUE(wait, current);

while (ret == 0) {

mutex_lock(&list->read_mutex);
mutex_lock(&list->read_mutex);

while (ret == 0) {
if (list->head == list->tail) {
add_wait_queue(&list->hidraw->wait, &wait);
set_current_state(TASK_INTERRUPTIBLE);
Expand Down

0 comments on commit 381a6a2

Please sign in to comment.