VirtualBox

Changeset 41578 in vbox for trunk/src


Ignore:
Timestamp:
Jun 5, 2012 2:01:18 PM (13 years ago)
Author:
vboxsync
Message:

Main/linux: check an error code in the USB device code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/linux/USBGetDevices.cpp

    r37624 r41578  
    874874    if (!bus)
    875875        return VINF_SUCCESS;
    876     unsigned device = RTLinuxSysFsReadIntFile(10, "%s/devnum", pcszNode);
     876    int device = RTLinuxSysFsReadIntFile(10, "%s/devnum", pcszNode);
     877    if (device < 0)
     878        return VINF_SUCCESS;
    877879    dev_t devnum = usbMakeDevNum(bus, device);
    878880    if (!devnum)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette