]> git.karo-electronics.de Git - linux-beck.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)
commite0857ce58e8658657f5f12fe25272b93cfeb16aa
treebfc7fd6444aecd682879f427c7474e7527078a5f
parentc0d31b3c3d9a025b8d5a57c35671e60c5f388bf7
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