Files
erofs-linux/drivers/usb/chipidea
Xu Yang fc3afb5728 usb: chipidea: fix usage_count leak when autosuspend_delay is negative
The probe() calls pm_runtime_use_autosuspend(), but remove() does not call
pm_runtime_dont_use_autosuspend(). This can lead to a usage_count leak if
autosuspend_delay is set to a negative value.

The pm_runtime_use_autosuspend() also notes that it's important to undo
this with pm_runtime_dont_use_autosuspend() at driver exit time.

Fixes: 1f874edcb7 ("usb: chipidea: add runtime power management support")
Cc: stable <[email protected]>
Assisted-by: Claude:claude-sonnet-4.6
Signed-off-by: Xu Yang <[email protected]>
Reviewed-by: Frank Li <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2026-07-16 17:12:21 +02:00
..
…
…
…
…
…
…
…
…
…
…
…
…