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

Changeset fddffb2 in mainline


Ignore:
Timestamp:
2014-01-02T21:30:58Z (8 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
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.