Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 4c86c7c in mainline


Ignore:
Timestamp:
2013-01-27T20:34:53Z (9 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
af4e464e
Parents:
48fa501
Message:

libusbdev: Close bus_session after every other thing is down.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/src/devdrv.c

    r48fa501 r4c86c7c  
    381381{
    382382        if (usb_dev) {
    383                 usb_dev_disconnect(usb_dev->bus_session);
    384383                /* Destroy existing pipes. */
    385384                usb_device_destroy_pipes(usb_dev);
     
    390389                free(usb_dev->driver_data);
    391390                usb_dev->driver_data = NULL;
     391                usb_dev_disconnect(usb_dev->bus_session);
     392                usb_dev->bus_session = NULL;
    392393        }
    393394}
Note: See TracChangeset for help on using the changeset viewer.