]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: loopback: don't queue requests to bogus endpoints
authorFelipe Balbi <balbi@ti.com>
Mon, 13 Oct 2014 20:30:52 +0000 (15:30 -0500)
committerFelipe Balbi <balbi@ti.com>
Thu, 23 Oct 2014 14:55:42 +0000 (09:55 -0500)
commitec59c3737b450cd7fc8350eeabe8039008172b76
treebfc7fd6444aecd682879f427c7474e7527078a5f
parentcb458285f3a8d5ab9b1eb55fa2bf739c7aaa66ba
usb: gadget: loopback: don't queue requests to bogus endpoints

A request allocated from e.g. ep1out cannot
be queued to any other endpoint. This bug has
been in f_loopback at least since mid-2011 and
since nobody has really screamed about it, we're
not backporting to any stable kernels.

Debugged with MUSB since that's the only controller
which complains about this case.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/f_loopback.c