mirror of
https://github.com/apache/nuttx.git
synced 2026-05-13 02:18:38 +08:00
9948b5e701
USB drivers should not try control devices in the usbhost_disconnected function. The control endpoint is NULL at this point because the device has already been disconnected. Before this change, the hub driver crashed when the child called usbhost_hubpwr after the parent had already deactivated the control pipe and set hport->ep0 to NULL.