Commit fa4dce20 authored by Peter Chen's avatar Peter Chen Committed by Felipe Balbi

usb: gadget: f_sourcesink: quit if usb_ep_queue returns error

Since now, we may have more than one request during the test, and
it is better we just quit once the error occurs instead of try
queueing further requests.
Signed-off-by: default avatarPeter Chen <peter.chen@freescale.com>
Suggested-by: default avatarKrzysztof Opasiak <k.opasiak@samsung.com>
Reviewed-by: default avatarKrzysztof Opasiak <k.opasiak@samsung.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 0aecfc1b
...@@ -629,6 +629,7 @@ static int source_sink_start_ep(struct f_sourcesink *ss, bool is_in, ...@@ -629,6 +629,7 @@ static int source_sink_start_ep(struct f_sourcesink *ss, bool is_in,
is_iso ? "ISO-" : "", is_in ? "IN" : "OUT", is_iso ? "ISO-" : "", is_in ? "IN" : "OUT",
ep->name, status); ep->name, status);
free_ep_req(ep, req); free_ep_req(ep, req);
return status;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment