Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 343113
b: refs/heads/master
c: 13f1962
h: refs/heads/master
i:
  343111: 6915d46
v: v3
  • Loading branch information
Jiri Kosina committed Nov 27, 2012
1 parent 693a179 commit c63bd2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 4cc8541782140e9ccbece5c8ac367fbf659b16d9
refs/heads/master: 13f19624029f43f5d0f98a96a9e6ba4d38da96a9
8 changes: 4 additions & 4 deletions trunk/drivers/hid/usbhid/hiddev.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,6 @@ static ssize_t hiddev_read(struct file * file, char __user * buffer, size_t coun
prepare_to_wait(&list->hiddev->wait, &wait, TASK_INTERRUPTIBLE);

while (list->head == list->tail) {
if (file->f_flags & O_NONBLOCK) {
retval = -EAGAIN;
break;
}
if (signal_pending(current)) {
retval = -ERESTARTSYS;
break;
Expand All @@ -373,6 +369,10 @@ static ssize_t hiddev_read(struct file * file, char __user * buffer, size_t coun
retval = -EIO;
break;
}
if (file->f_flags & O_NONBLOCK) {
retval = -EAGAIN;
break;
}

/* let O_NONBLOCK tasks run */
mutex_unlock(&list->thread_lock);
Expand Down

0 comments on commit c63bd2c

Please sign in to comment.