Need to check the transfer cache field in the device done function

to be sure all allocated channels are freed and not the transfer first
one.
This commit is contained in:
Hans Petter Selasky 2014-06-05 18:19:48 +00:00
parent 08aa4c94b8
commit 1b1df1a91f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=267121

View File

@ -2098,7 +2098,7 @@ saf1761_otg_device_done(struct usb_xfer *xfer, usb_error_t error)
} else {
struct saf1761_otg_td *td;
td = xfer->td_transfer_first;
td = xfer->td_transfer_cache;
if (td != NULL)
saf1761_host_channel_free(sc, td);