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

Changeset 0a5833d7 in mainline


Ignore:
Timestamp:
2017-10-12T23:05:00Z (3 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
master
Children:
e6b9182
Parents:
0e3e1f6
Message:

Corrected endpoint access.

File:
1 edited

Legend:

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

    r0e3e1f6 r0a5833d7  
    105105                return ENOMEM;
    106106
    107         hashed_ep->endpoint = (xhci_endpoint_t *) ep;
     107        hashed_ep->endpoint = xhci_endpoint_get(ep);
    108108        hash_table_insert(&bus->endpoints, &hashed_ep->link);
    109109
     
    137137                return NULL;
    138138
    139         return (endpoint_t *) hashed_ep->endpoint;
     139        return &hashed_ep->endpoint->base;
    140140}
    141141
Note: See TracChangeset for help on using the changeset viewer.