
4 Jul
2016
4 Jul
'16
1:18 a.m.
On 3 July 2016 at 12:22, Hans de Goede hdegoede@redhat.com wrote:
The old dm "usb info" implementation has several issues:
- NULL pointer deref when a bus has no children
- Not showing usb devices on busses without an emulated root-hub (otg host)
- Attempting to show devices on inactive busses
- "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: Bernhard Nortmann bernhard.nortmann@web.de Signed-off-by: Hans de Goede hdegoede@redhat.com
cmd/usb.c | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org