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

Changeset a70f349 in mainline


Ignore:
Timestamp:
2018-01-10T20:09:15Z (4 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master
Children:
a4eb520f
Parents:
9748336
Message:

usbdev: fixed infinite cycle on errors

File:
1 edited

Legend:

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

    r9748336 ra70f349  
    136136                            params->on_error(data->dev, rc, params->arg);
    137137                        if (!cont) {
    138                                 failed_attempts = params->max_failures;
     138                                failed_attempts = params->max_failures + 1;
    139139                        }
    140140                        continue;
Note: See TracChangeset for help on using the changeset viewer.