summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2024-06-09 23:32:18 +0200
committerMattijs Korpershoek <[email protected]>2024-07-05 14:01:19 +0200
commitbd7ec7b04f877b8b4a88d4367f100dc3f0af27a3 (patch)
tree137703d8472a2e2a3aa03c53d28328917e819424 /include
parentdb62b6a0a016b69cf0e26eea4004c3edbebd4394 (diff)
usb: gadget: Add full ep_matches() check past .match_ep() callback
If .match_ep() callback returns non-NULL endpoint, immediately check its usability and if the returned endpoint is usable, stop search and return the endpoint. Otherwise, continue with best effort search for usable endpoint. Currently the code would attempt the best effort search in any case, which may find another unexpected endpoint. It is likely that the intention of the original code was to stop the search early. Fixes: 77dcbdf3c1ce ("usb: gadget: Add match_ep() op to usb_gadget_ops") Signed-off-by: Marek Vasut <[email protected]> Tested-by: Alexander Sverdlin <[email protected]> Reviewed-by: Mattijs Korpershoek <[email protected]> Tested-by: Mattijs Korpershoek <[email protected]> # on vim3 Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mattijs Korpershoek <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions