Add missing logic to destroy a class when the device is no longer connected to the hub port

This commit is contained in:
Gregory Nutt 2015-04-25 11:17:37 -06:00
parent 926616121d
commit 76ff0fce86

View File

@ -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;