Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57493
b: refs/heads/master
c: 97cb95d
h: refs/heads/master
i:
  57491: e8ea218
v: v3
  • Loading branch information
Pete Zaitcev authored and Greg Kroah-Hartman committed Jun 8, 2007
1 parent 2fab74a commit 80bb4f9
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: dda034bcb51a0a28318046d74d664e0fc5f7d1d4
refs/heads/master: 97cb95d1c4b724bc3bedd16dd022fbd3c2d61283
5 changes: 2 additions & 3 deletions trunk/drivers/usb/class/usblp.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,10 +347,8 @@ static int handle_bidir (struct usblp *usblp)
if (usblp->bidir && usblp->used && !usblp->sleeping) {
usblp->readcount = 0;
usblp->readurb->dev = usblp->dev;
if (usb_submit_urb(usblp->readurb, GFP_KERNEL) < 0) {
usblp->used = 0;
if (usb_submit_urb(usblp->readurb, GFP_KERNEL) < 0)
return -EIO;
}
}

return 0;
Expand Down Expand Up @@ -412,6 +410,7 @@ static int usblp_open(struct inode *inode, struct file *file)
usblp->readurb->status = 0;

if (handle_bidir(usblp) < 0) {
usblp->used = 0;
file->private_data = NULL;
retval = -EIO;
}
Expand Down

0 comments on commit 80bb4f9

Please sign in to comment.