Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248539
b: refs/heads/master
c: 06268b2
h: refs/heads/master
i:
  248537: 3d1fe58
  248535: 8daa35b
v: v3
  • Loading branch information
Peter Waechtler authored and Jiri Kosina committed Apr 29, 2011
1 parent e6540a2 commit f45c154
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: 35dca5b4a67a93bbb75c2753d6dc432dc8f82e5d
refs/heads/master: 06268b2a384ece73618c1ad7649d19905ab79806
4 changes: 3 additions & 1 deletion trunk/drivers/hid/usbhid/hiddev.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,10 @@ static ssize_t hiddev_read(struct file * file, char __user * buffer, size_t coun
/* let O_NONBLOCK tasks run */
mutex_unlock(&list->thread_lock);
schedule();
if (mutex_lock_interruptible(&list->thread_lock))
if (mutex_lock_interruptible(&list->thread_lock)) {
finish_wait(&list->hiddev->wait, &wait);
return -EINTR;
}
set_current_state(TASK_INTERRUPTIBLE);
}
finish_wait(&list->hiddev->wait, &wait);
Expand Down

0 comments on commit f45c154

Please sign in to comment.