]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: composite: don't try standard handling for non-standard requests
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Tue, 3 Mar 2015 09:52:04 +0000 (10:52 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 10 Mar 2015 20:33:33 +0000 (15:33 -0500)
commit1cddef04ac1bc8520796f508487c6e24942a45ee
tree2a5c6b96ee1a858a163befe2d7337deddc261b4a
parentec342cc26f2ff1c0b0fcfab10024a254a190b9ff
usb: gadget: composite: don't try standard handling for non-standard requests

If a non-standard request is processed and its parameters just happen
to match those of some standard request, the logic of composite_setup()
can be fooled, so don't even try any switch cases, just go to the
proper place where unknown requests are handled.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/composite.c