summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2026-10-15 09:48:31 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-10-17 12:39:44 +0200
commit9cbbd0c18603a18b01abcdaeee24c133db2e9f2e (patch)
treeaffbc57da0b6843a5c9f5fc8aa9cdd5777c1efc8 /include
parent893584e7e390c44bf547235749c72f931108a2d7 (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 'include')
0 files changed, 0 insertions, 0 deletions