Changeset 7138a78b in mainline


Ignore:
Timestamp:
2018-01-19T13:07:43Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c7d5189
Parents:
41abf3c
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-19 13:03:52)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-19 13:07:43)
Message:

usb: do not fail just because of wrong assert

If the events come fast enough, the coditions may change between
signalling the condvar and waking up from waiting. As this function is
called to destroy the device on a port, it is sufficient to know if that
particular device is gone - not that there's no device just now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/port.c

    r41abf3c r7138a78b  
    199199        }
    200200
    201         assert(port->state == PORT_DISABLED || port->state == PORT_DISCONNECTING);
    202201        fibril_mutex_unlock(&port->guard);
    203202}
Note: See TracChangeset for help on using the changeset viewer.