usb: gadget: f_midi: fail if set_alt fails to allocate requests
authorFelipe F. Tonello <eu@felipetonello.com>
Tue, 1 Dec 2015 18:31:01 +0000 (18:31 +0000)
committerFelipe Balbi <balbi@ti.com>
Wed, 16 Dec 2015 16:07:29 +0000 (10:07 -0600)
commitf0f1b8cac4d8d973e95f25d9ea132775fb43c5f4
tree96e671e7601334cb4b7061195151b25370ae7186
parent919de443c2acd9fbd691ea0ed7d1ad858e5f8bed
usb: gadget: f_midi: fail if set_alt fails to allocate requests

This ensures that the midi function will only work if the proper number of
IN and OUT requrests are allocated. Otherwise the function will work with less
requests then what the user wants.

Signed-off-by: Felipe F. Tonello <eu@felipetonello.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/f_midi.c
This page took 0.030525 seconds and 5 git commands to generate.