提交 41566bcf 编写于 作者: J Jan Altenberg 提交者: Greg Kroah-Hartman

USB: gadget: queue usb USB_CDC_GET_ENCAPSULATED_RESPONSE message

commit 0cf4f2de introduced a bug, which
prevents sending an USB_CDC_GET_ENCAPSULATED_RESPONSE message. This
breaks the RNDIS initialization (especially / only Windoze machines
dislike this behavior...).
Signed-off-by: NBenedikt Spranger <b.spranger@linutronix.de>
Signed-off-by: NJan Altenberg <jan.altenberg@linutronix.de>
Acked-by: NDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 7f4a9e87
...@@ -1561,6 +1561,7 @@ eth_setup (struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl) ...@@ -1561,6 +1561,7 @@ eth_setup (struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl)
memcpy(req->buf, buf, n); memcpy(req->buf, buf, n);
req->complete = rndis_response_complete; req->complete = rndis_response_complete;
rndis_free_response(dev->rndis_config, buf); rndis_free_response(dev->rndis_config, buf);
value = n;
} }
/* else stalls ... spec says to avoid that */ /* else stalls ... spec says to avoid that */
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册