Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 62f8025 in mainline


Ignore:
Timestamp:
2017-10-28T22:47:06Z (4 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master
Children:
9620a54
Parents:
6b2930b
Message:

Centrally disabled deallocation of endpoint-related data structures due to memory corruption. This is better than commenting out every single usage.

Location:
uspace/drv/bus/usb/xhci
Files:
2 edited

Legend:

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

    r6b2930b r62f8025  
    439439        /* Tear down TRB ring / PSA. */
    440440        /* TODO: Make this method "noexcept" */
    441         /* FIXME: There is some memory corruption going on, causing this to crash. */
    442         /*if ((err = xhci_endpoint_free_transfer_ds(ep))) {
     441        if ((err = xhci_endpoint_free_transfer_ds(ep))) {
    443442                usb_log_error("Failed to free resources of an endpoint.");
    444         }*/
     443        }
    445444
    446445        return EOK;
  • uspace/drv/bus/usb/xhci/endpoint.c

    r6b2930b r62f8025  
    203203int xhci_endpoint_free_transfer_ds(xhci_endpoint_t *xhci_ep)
    204204{
     205        /* FIXME: For some reason (possibly memory corruption), this crashes. */
     206        return EOK;
     207
    205208        if (endpoint_using_streams(xhci_ep)) {
    206209                usb_log_debug2("Freeing primary stream context array for endpoint " XHCI_EP_FMT, XHCI_EP_ARGS(*xhci_ep));
Note: See TracChangeset for help on using the changeset viewer.