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

Changeset bd41b192 in mainline


Ignore:
Timestamp:
2014-01-21T21:29:12Z (8 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
bdddc9d
Parents:
2be477d5
Message:

libusb: async_hangup is not NULL safe

File:
1 edited

Legend:

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

    r2be477d5 rbd41b192  
    506506            EXCHANGE_ATOMIC, handle, IPC_FLAG_BLOCKING);
    507507        int ret = usb_device_get_info(sess, &h, &iface_no);
    508         async_hangup(sess);
     508        if (sess)
     509                async_hangup(sess);
    509510        if (ret != EOK)
    510511                return NULL;
Note: See TracChangeset for help on using the changeset viewer.