diff options
| author | Petr Beneš <[email protected]> | 2025-12-18 15:27:35 +0100 |
|---|---|---|
| committer | Mattijs Korpershoek <[email protected]> | 2026-01-09 09:24:39 +0100 |
| commit | 6a92e9827650797b6b5290621c1831fe32d6ea4b (patch) | |
| tree | 94171ea3cde7ac10babb562f104e970226029bf8 /scripts/env2string.awk | |
| parent | 1cd0a441066d3003c63fc90d936f6c4e1b47c896 (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/env2string.awk')
0 files changed, 0 insertions, 0 deletions
