aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/device.py
diff options
context:
space:
mode:
authorMathias Nyman <[email protected]>2023-01-16 16:22:12 +0200
committerGreg Kroah-Hartman <[email protected]>2023-01-17 16:37:24 +0100
commita2bc47c43e70cf904b1af49f76d572326c08bca7 (patch)
tree66e191f58632b5866665d488301566241f379a99 /scripts/gdb/linux/device.py
parente8fb5bc76eb86437ab87002d4a36d6da02165654 (diff)
xhci: Fix null pointer dereference when host dies
Make sure xhci_free_dev() and xhci_kill_endpoint_urbs() do not race and cause null pointer dereference when host suddenly dies. Usb core may call xhci_free_dev() which frees the xhci->devs[slot_id] virt device at the same time that xhci_kill_endpoint_urbs() tries to loop through all the device's endpoints, checking if there are any cancelled urbs left to give back. hold the xhci spinlock while freeing the virt device Cc: [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/gdb/linux/device.py')
0 files changed, 0 insertions, 0 deletions