summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorRunyu Xiao <runyu.xiao@seu.edu.cn>2026-09-04 14:53:23 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-09-10 17:08:19 +0200
commitfd772af9512cdecb83de34a461801533828e77fd (patch)
tree90a07397ece751c9f008602d8f98929887b2c895 /tools/lib/python
parent3d9bbf0ffeb9b7ac1b6ad06b52e037870a7e0c63 (diff)
downloadlinux-next-fd772af9512cdecb83de34a461801533828e77fd.tar.gz
linux-next-fd772af9512cdecb83de34a461801533828e77fd.zip
USB: dwc2: shut down wakeup timer before freeing HCD state
dwc2_wakeup_detected() accesses the DWC2 host state and can rearm the wakeup timer. dwc2_hcd_free() currently deletes the timer only after freeing host-owned state, and timer_delete() does not synchronize a callback or prevent it from being queued again. Stop and shut down the timer in dwc2_hcd_release(), before the HCD resources are freed. This covers both the HCD initialization error path and normal HCD removal. Fixes: 7359d482eb4d ("staging: HCD files for the DWC2 driver") Cc: stable <stable@kernel.org> Assisted-by: Codex:GPT-5 Signed-off-by: Runyu Xiao <runyu.xiao@seu.edu.cn> Reviewed-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Link: https://patch.msgid.link/20260904065323.4047026-1-runyu.xiao@seu.edu.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions