From: Alan Stern Date: Fri, 14 Apr 2006 20:40:00 +0000 (-0400) Subject: [PATCH] USB: net2280: Handle STALLs for 0-length control-IN requests X-Git-Tag: v2.6.17-rc4~137^2~7 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a29fccd7993a3d411674e148cb0759a017be3e21;p=linux-2.6-omap-h63xx.git [PATCH] USB: net2280: Handle STALLs for 0-length control-IN requests This patch (as668) fixes a typo in net2280. The handler for 0-length control-IN requests should check that the endpoint _isn't_ halted before sending a 0-length packet. Signed-off-by: Alan Stern Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/gadget/net2280.c b/drivers/usb/gadget/net2280.c index 6a4b93ad108..2d5cededcbd 100644 --- a/drivers/usb/gadget/net2280.c +++ b/drivers/usb/gadget/net2280.c @@ -2166,7 +2166,7 @@ static void handle_ep_small (struct net2280_ep *ep) ep->stopped = 1; set_halt (ep); mode = 2; - } else if (!req && ep->stopped) + } else if (!req && !ep->stopped) write_fifo (ep, NULL); } } else {