summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorPetr Beneš <[email protected]>2025-12-18 15:27:35 +0100
committerMattijs Korpershoek <[email protected]>2026-01-09 09:24:39 +0100
commit6a92e9827650797b6b5290621c1831fe32d6ea4b (patch)
tree94171ea3cde7ac10babb562f104e970226029bf8 /scripts/basic
parent1cd0a441066d3003c63fc90d936f6c4e1b47c896 (diff)
usb: ci_udc: Check ci_ep->desc before use
There are two places where ci_ep->desc could be accessed despite it is not valid at that moment. Either the endpoint has not been enabled yet or it has been disabled meanwhile (The ethernet gadged behaves this way at least.). That results in dereferencing a null pointer. Moreover, the patch gets rid of possible outstanding requests if the endpoint's state changes to disabled. Signed-off-by: Petr Beneš <[email protected]> Reviewed-by: Mattijs Korpershoek <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mattijs Korpershoek <[email protected]>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions