Changeset bd1fab90 in mainline


Ignore:
Timestamp:
2017-12-20T14:34:08Z (7 years ago)
Author:
Salmelu <salmelu@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
85bf12ba
Parents:
5909c59
Message:

xhci: isoch endpoint buffers weren't freed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/endpoint.c

    r5909c59 rbd1fab90  
    247247
    248248        if (xhci_ep->base.transfer_type == USB_TRANSFER_ISOCHRONOUS) {
    249                 if((err = xhci_isoch_alloc_transfers(xhci_ep))) {
     249                if ((err = xhci_isoch_alloc_transfers(xhci_ep))) {
    250250                        xhci_trb_ring_fini(&xhci_ep->ring);
    251251                        return err;
     
    279279                xhci_trb_ring_fini(&xhci_ep->ring);
    280280        }
     281
     282        if (xhci_ep->base.transfer_type == USB_TRANSFER_ISOCHRONOUS) {
     283                for (size_t i = 0; i < XHCI_ISOCH_BUFFER_COUNT; ++i) {
     284                        dma_buffer_free(&xhci_ep->isoch_transfers[i].data);
     285                }
     286        }
    281287}
    282288
Note: See TracChangeset for help on using the changeset viewer.