Changeset fddffb2 in mainline for uspace/drv/bus/usb/ehci/res.c


Ignore:
Timestamp:
2014-01-02T21:30:58Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
19b3cc6
Parents:
2ef8023
Message:

ehci: Check op success to avoid endless loop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/res.c

    r2ef8023 rfddffb2  
    100100        ret = pci_config_space_read_32(
    101101            parent_sess, eecp + USBLEGSUP_OFFSET, &usblegsup);
    102         while ((wait < DEFAULT_WAIT) && (usblegsup & USBLEGSUP_BIOS_CONTROL)) {
     102        while ((ret == EOK) && (wait < DEFAULT_WAIT)
     103            && (usblegsup & USBLEGSUP_BIOS_CONTROL)) {
    103104                async_usleep(WAIT_STEP);
    104105                ret = pci_config_space_read_32(parent_sess,
Note: See TracChangeset for help on using the changeset viewer.