Changeset f527f58 in mainline for uspace/lib/usbhost/src/hcd.c


Ignore:
Timestamp:
2016-08-03T11:12:24Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
96ef672
Parents:
e657635
Message:

Reference-count endpoint_t structures

Track explicit references to USB endpoints. Call endpoint_destroy()
only after the last reference is destroyed. This prevents the scenario
in which removal was attempted on an endpoint while there was a transfer
in progress.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/hcd.c

    re657635 rf527f58  
    241241                usb_transfer_batch_destroy(batch);
    242242
     243        /* Drop our own reference to ep. */
     244        endpoint_del_ref(ep);
     245
    243246        return ret;
    244247}
Note: See TracChangeset for help on using the changeset viewer.