Changeset 53db806 in mainline for uspace/lib/usbhost/src/bus.c


Ignore:
Timestamp:
2017-12-10T22:42:44Z (8 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7d957b2
Parents:
889146e
Message:

xhci bus: fix setup of FS device

File:
1 edited

Legend:

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

    r889146e r53db806  
    131131        assert(device);
    132132
    133         fibril_mutex_lock(&bus->guard);
    134 
    135133        if (desc->max_packet_size == 0 || desc->packets == 0) {
    136134                usb_log_warning("Invalid endpoint description (mps %zu, %u packets)", desc->max_packet_size, desc->packets);
    137135                return EINVAL;
    138136        }
     137
     138        fibril_mutex_lock(&bus->guard);
    139139
    140140        int err = ENOMEM;
Note: See TracChangeset for help on using the changeset viewer.