Changeset e8277c0 in mainline for uspace/drv/bus/usb/uhci/hc.c


Ignore:
Timestamp:
2018-01-25T02:05:57Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5f0b366
Parents:
4172db4a
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-25 01:14:34)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-25 02:05:57)
Message:

uhci: even the single bool flag needs to be allocated

Believe it or not, this took me 4 hours to hunt down.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/uhci/hc.c

    r4172db4a re8277c0  
    317317}
    318318
     319static endpoint_t *endpoint_create(device_t *device, const usb_endpoint_descriptors_t *desc)
     320{
     321        endpoint_t *ep = calloc(1, sizeof(uhci_endpoint_t));
     322        if (ep)
     323                endpoint_init(ep, device, desc);
     324        return ep;
     325}
     326
    319327static int endpoint_register(endpoint_t *ep)
    320328{
     
    407415        .status = hc_status,
    408416
     417        .endpoint_create = endpoint_create,
    409418        .endpoint_register = endpoint_register,
    410419        .endpoint_unregister = endpoint_unregister,
Note: See TracChangeset for help on using the changeset viewer.