diff options
author | Mathias Nyman <[email protected]> | 2023-12-15 14:57:07 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-12-15 18:29:02 +0100 |
commit | 80602b6b5a23b210224a5b44d9e5b5c1dc193632 (patch) | |
tree | fb11f5a286564d5589091680efbf7baac0f13424 /tools/perf/scripts/python/sched-migration.py | |
parent | c084af69a8f425b8cb56479ff0ea11e48aba0c62 (diff) |
xhci: Fix null pointer dereference during S4 resume when resetting ep0
During device enumeration usb core resets endpoint 0 if the max packet
size value differs from the one read from the device descriptor.
usb core will additionally reset endpoint 0 during S4 resume, before
re-enumerating the device, if the device has a reset-resume flag set.
In this case the xhci device representation vdev may be lost due to
xHC restore error and re-initialization during S4 resume.
Make sure slot_id and vdev are valid before trying to re-configure max
packet size during endpoint 0 reset.
max packet size will be re-configured later during re-enumeration.
This fixes commit e34900f46cd6 ("xhci: Reconfigure endpoint 0 max packet
size only during endpoint reset") which is currently in usb-next,
on its way to 6.8
Fixes: e34900f46cd6 ("xhci: Reconfigure endpoint 0 max packet size only during endpoint reset")
Tested-by: Wendy Wang <[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 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions