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:
parent
08aa4c94b8
commit
1b1df1a91f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user