Skip to content
Commit e6e188f5 authored by Hans de Goede's avatar Hans de Goede Committed by Marek Vasut
Browse files

usb: dm: Make "usb info" use usb_for_each_root_dev()



The old dm "usb info" implementation has several issues:

1) NULL pointer deref when a bus has no children
2) Not showing usb devices on busses without an emulated root-hub (otg host)
3) Attempting to show devices on inactive busses
4) "usb info" Would cause some hosts to get re-probed something which only
   "usb reset" should do

TL;DR: proper iterating over usb bus root devs is hard, use the helper
for it.

Reported-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent 2138fd6d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment