Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25747
b: refs/heads/master
c: 35fcca4
h: refs/heads/master
i:
  25745: f211dfd
  25743: a615fd1
v: v3
  • Loading branch information
David Brownell authored and Greg Kroah-Hartman committed Apr 14, 2006
1 parent 0700fe2 commit e5c6f82
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 984163338a24198863116ccf3e7762fd1fc3c663
refs/heads/master: 35fcca442aca1a8d927b697e7e15d3f655958bd7
7 changes: 5 additions & 2 deletions trunk/drivers/usb/gadget/zero.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,9 +572,10 @@ static void source_sink_complete (struct usb_ep *ep, struct usb_request *req)
switch (status) {

case 0: /* normal completion? */
if (ep == dev->out_ep)
if (ep == dev->out_ep) {
check_read_data (dev, ep, req);
else
memset (req->buf, 0x55, req->length);
} else
reinit_write_data (dev, ep, req);
break;

Expand Down Expand Up @@ -626,6 +627,8 @@ source_sink_start_ep (struct usb_ep *ep, gfp_t gfp_flags)

if (strcmp (ep->name, EP_IN_NAME) == 0)
reinit_write_data (ep->driver_data, ep, req);
else
memset (req->buf, 0x55, req->length);

status = usb_ep_queue (ep, req, gfp_flags);
if (status) {
Expand Down

0 comments on commit e5c6f82

Please sign in to comment.