Skip to content

Commit

Permalink
[PATCH] USB: net2280: Handle STALLs for 0-length control-IN requests
Browse files Browse the repository at this point in the history
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 <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Alan Stern authored and Greg Kroah-Hartman committed Apr 27, 2006
1 parent f430c40 commit a29fccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/net2280.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a29fccd

Please sign in to comment.