Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174894
b: refs/heads/master
c: 4de8405
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent 49c32c2 commit 71702da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: f0ad073f043b5ac04620bb80ecfc92114d348044
refs/heads/master: 4de84057598599bbf90bf1deae923bc33f571475
4 changes: 2 additions & 2 deletions trunk/drivers/usb/usb-skeleton.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ static ssize_t skel_read(struct file *file, char *buffer, size_t count,
rv = skel_do_read_io(dev, count);
if (rv < 0)
goto exit;
else if (!file->f_flags & O_NONBLOCK)
else if (!(file->f_flags & O_NONBLOCK))
goto retry;
rv = -EAGAIN;
}
Expand Down Expand Up @@ -411,7 +411,7 @@ static ssize_t skel_write(struct file *file, const char *user_buffer,
* limit the number of URBs in flight to stop a user from using up all
* RAM
*/
if (!file->f_flags & O_NONBLOCK) {
if (!(file->f_flags & O_NONBLOCK)) {
if (down_interruptible(&dev->limit_sem)) {
retval = -ERESTARTSYS;
goto exit;
Expand Down

0 comments on commit 71702da

Please sign in to comment.