mirror of
https://github.com/apache/nuttx.git
synced 2026-08-27 04:10:40 +00:00
Add missing logic to destroy a class when the device is no longer connected to the hub port
This commit is contained in:
parent
926616121d
commit
76ff0fce86
1 changed files with 6 additions and 0 deletions
|
|
@ -931,6 +931,12 @@ static inline int lpc17_remctrled(struct lpc17_usbhost_s *priv,
|
|||
|
||||
prev->hw.nexted = ed->hw.nexted;
|
||||
}
|
||||
|
||||
/* Just in case the hardware happens to be processing this ed now...
|
||||
* it should go back to the control list head.
|
||||
*/
|
||||
|
||||
ed->hw.nexted = 0;
|
||||
}
|
||||
|
||||
return OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue