Changeset c979591b in mainline for uspace/lib/usb/src/recognise.c


Ignore:
Timestamp:
2011-01-23T22:44:40Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4a5e2f1
Parents:
4f380d06 (diff), b93d637 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merged myself

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/recognise.c

    r4f380d06 rc979591b  
    203203                uint8_t cur_descr_len = current_descriptor[0];
    204204                uint8_t cur_descr_type = current_descriptor[1];
     205
     206                if (cur_descr_len == 0) {
     207                        return ENOENT;
     208                }
    205209               
    206210                position += cur_descr_len;
Note: See TracChangeset for help on using the changeset viewer.