Files
Johan Hovold 9cbbd0c186 USB: core: document purpose of interface parent reference
USB interfaces hold a reference to their parent USB device to make sure
they do not outlive the parent.

Add a comment explaining that this reference is specifically needed for
asynchronous device resets and the device type need_parent_lock feature
(to allow driver core to lock the parent when only holding a reference
to the interface).

See commits:

  524134d422 ("USB: don't cancel queued resets when unbinding drivers")
  0f554506a3fc ("driver core: fix parent lock use-after-free on USB disconnect")

for further details.

Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Danilo Krummrich <dakr@kernel.org>
Link: https://patch.msgid.link/20261015074831.1418677-1-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-10-17 12:39:44 +02:00
..
2026-08-14 10:17:11 +09:00
2023-07-25 17:49:30 +02:00
2026-06-01 17:39:51 +02:00
2026-10-05 07:51:27 +02:00
2019-06-26 10:28:09 +08:00
2025-06-19 12:36:19 +02:00