Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db8f2aa3 authored by Bjorn Helgaas's avatar Bjorn Helgaas Committed by Greg Kroah-Hartman
Browse files

USB: correct the usb_disconnect() comment about usb_bus_list_lock



usb_disconnect() no longer acquires usb_bus_list_lock, so update its
comment to that effect.

Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 232275a0
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -2023,8 +2023,8 @@ static void hub_free_dev(struct usb_device *udev)
 * Something got disconnected. Get rid of it and all of its children.
 * Something got disconnected. Get rid of it and all of its children.
 *
 *
 * If *pdev is a normal device then the parent hub must already be locked.
 * If *pdev is a normal device then the parent hub must already be locked.
 * If *pdev is a root hub then this routine will acquire the
 * If *pdev is a root hub then the caller must hold the usb_bus_list_lock,
 * usb_bus_list_lock on behalf of the caller.
 * which protects the set of root hubs as well as the list of buses.
 *
 *
 * Only hub drivers (including virtual root hub drivers for host
 * Only hub drivers (including virtual root hub drivers for host
 * controllers) should ever call this.
 * controllers) should ever call this.