Don't attempt to insert the transfer in an error case where it has
already been inserted.
This commit is contained in:
parent
8817afd4b7
commit
2698dd58d9
@ -385,8 +385,6 @@ usbd_start_transfer(void *arg, bus_dma_segment_t *segs, int nseg, int error)
|
||||
bus_dmamap_destroy(tag, dmap->map);
|
||||
xfer->rqflags &= ~URQ_AUTO_DMABUF;
|
||||
}
|
||||
/* XXX */
|
||||
usb_insert_transfer(xfer);
|
||||
xfer->status = err;
|
||||
usb_transfer_complete(xfer);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user