Changeset 07a7a97d in mainline for uspace/lib/usbdev/src/hub.c


Ignore:
Timestamp:
2011-10-31T18:03:19Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
46f2808
Parents:
27736cf
Message:

libusbdev: Fix possible pipe leak in new_device_wrapper.

File:
1 edited

Legend:

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

    r27736cf r07a7a97d  
    379379         */
    380380leave_release_default_address:
    381         if (usb_pipe_unregister(&ctrl_pipe, &hc_conn) != EOK)
    382                 usb_log_warning("%s: Failed to unregister default pipe.\n",
    383                     __FUNCTION__);
    384381        usb_hc_unregister_device(&hc_conn, USB_ADDRESS_DEFAULT);
    385382
     
    388385                usb_log_warning("%s: Failed to unregister device.\n",
    389386                    __FUNCTION__);
     387        /* This might be either 0:0 or dev_addr:0 */
     388        if (usb_pipe_unregister(&ctrl_pipe, &hc_conn) != EOK)
     389                usb_log_warning("%s: Failed to unregister default pipe.\n",
     390                    __FUNCTION__);
    390391
    391392close_connection:
Note: See TracChangeset for help on using the changeset viewer.