Re: [PATCH] usb/dummy_hcd: consider stream_id in dummy's enqueue shortcut

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/20/2012 10:24 PM, Alan Stern wrote:
diff --git a/drivers/usb/gadget/dummy_hcd.c b/drivers/usb/gadget/dummy_hcd.c
index 329cc94..f897fb8 100644
--- a/drivers/usb/gadget/dummy_hcd.c
+++ b/drivers/usb/gadget/dummy_hcd.c
@@ -653,6 +653,7 @@ static int dummy_queue(struct usb_ep *_ep, struct usb_request *_req,
  		memcpy(dum->fifo_buf, _req->buf, _req->length);
  		req->req.context = dum;
  		req->req.complete = fifo_complete;
+		req->req.stream_id = _req->stream_id;

Why is this needed?  req->req.stream_id gets set earlier by the
statement:

		req->req = *_req;

Indeed. I must have missed it.

Alan Stern


Sebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux