]> err.no Git - linux-2.6/commitdiff
USB: gadget: queue usb USB_CDC_GET_ENCAPSULATED_RESPONSE message
authorJan Altenberg <jan.altenberg@linutronix.de>
Tue, 19 Feb 2008 00:44:50 +0000 (01:44 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 21 Feb 2008 23:38:52 +0000 (15:38 -0800)
commit 0cf4f2de0a0f4100795f38ef894d4910678c74f8 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: Benedikt Spranger <b.spranger@linutronix.de>
Signed-off-by: Jan Altenberg <jan.altenberg@linutronix.de>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/ether.c

index a70e255402b86e60aed06c1e54194909d25b916a..e99872308144d3f148f029ae7c9a5672eae9c827 100644 (file)
@@ -1561,6 +1561,7 @@ done_set_intf:
                                memcpy(req->buf, buf, n);
                                req->complete = rndis_response_complete;
                                rndis_free_response(dev->rndis_config, buf);
+                               value = n;
                        }
                        /* else stalls ... spec says to avoid that */
                }