aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorNiklas Neronin <[email protected]>2024-04-29 17:02:37 +0300
committerGreg Kroah-Hartman <[email protected]>2024-05-01 08:47:14 +0200
commit66cb618bf0bb82859875b00eeffaf223557cb416 (patch)
treeb32ad3f508a101bd36076d4871b4f10df323ceaa /scripts/generate_rust_analyzer.py
parent34b67198244f2d7d8409fa4eb76204c409c0c97e (diff)
usb: xhci: prevent potential failure in handle_tx_event() for Transfer events without TRB
Some transfer events don't always point to a TRB, and consequently don't have a endpoint ring. In these cases, function handle_tx_event() should not proceed, because if 'ep->skip' is set, the pointer to the endpoint ring is used. To prevent a potential failure and make the code logical, return after checking the completion code for a Transfer event without TRBs. Signed-off-by: Niklas Neronin <[email protected]> Signed-off-by: Mathias Nyman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions