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
@ -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…
Reference in New Issue
Block a user