Changeset 14e1bcc in mainline


Ignore:
Timestamp:
2011-05-26T13:52:58Z (13 years ago)
Author:
Matej Klonfar <maklf@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3e6e2b9, f3b39b4
Parents:
19a09d2d
Message:

usb_hid_parse_report returns EINVAL when report with unknown report_id is given

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhid/src/hidparser.c

    r19a09d2d r14e1bcc  
    159159
    160160        report_des = usb_hid_report_find_description(report, *report_id, type);
     161        if(report_des == NULL) {
     162                return EINVAL;
     163        }
    161164
    162165        /* read data */
Note: See TracChangeset for help on using the changeset viewer.