Changeset 338729c in mainline


Ignore:
Timestamp:
2018-01-16T23:29:43Z (6 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4e44f5d
Parents:
1d218bf
Message:

usbdev: fix race condition when unmapping endpoints

Location:
uspace/lib/usbdev
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/include/usb/dev/poll.h

    r1d218bf r338729c  
    11/*
    22 * Copyright (c) 2011 Vojtech Horky
     3 * Copyright (c) 2017 Petr Manek
    34 * All rights reserved.
    45 *
  • uspace/lib/usbdev/src/devpoll.c

    r1d218bf r338729c  
    11/*
    22 * Copyright (c) 2011 Vojtech Horky
     3 * Copyright (c) 2017 Petr Manek
    34 * All rights reserved.
    45 *
     
    281282
    282283        /* Unregister the pipe. */
    283         if ((rc = usb_device_unmap_ep(polling->ep_mapping)))
     284        rc = usb_device_unmap_ep(polling->ep_mapping);
     285        if (rc != EOK && rc != ENOENT)
    284286                return rc;
    285287
Note: See TracChangeset for help on using the changeset viewer.