diff options
| author | 2026-10-15 09:48:31 +0200 | |
|---|---|---|
| committer | 2026-10-17 12:39:44 +0200 | |
| commit | 9cbbd0c18603a18b01abcdaeee24c133db2e9f2e (patch) | |
| tree | affbc57da0b6843a5c9f5fc8aa9cdd5777c1efc8 /scripts/Makefile.thinlto | |
| parent | Merge tag 'usb-serial-7.4-rc1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial into usb-next (diff) | |
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:
524134d42231 ("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>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
