Changeset 0dd3e49 in mainline


Ignore:
Timestamp:
2011-05-30T15:14:50Z (13 years ago)
Author:
Matej Klonfar <maklf@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0c07d70, 3ae26a8, 55f324f
Parents:
2176ed6
Message:

find report description bug fix

Location:
uspace/lib/usbhid/src
Files:
2 edited

Legend:

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

    r2176ed6 r0dd3e49  
    328328                const usb_hid_report_t *report, uint8_t report_id,
    329329                usb_hid_report_type_t type) {
     330
     331        if(report == NULL) {
     332                return NULL;
     333        }
    330334
    331335        link_t *report_it = report->reports.next;
  • uspace/lib/usbhid/src/hidparser.c

    r2176ed6 r0dd3e49  
    605605       
    606606        if(report_id > 0) {
    607                 report_it = usb_hid_report_find_description(report, report_id,
    608                         type)->link.next;               
     607                report_des = usb_hid_report_find_description(report, report_id,
     608                        type);
     609                if(report_des == NULL) {
     610                        return 0;
     611                }
     612                else {
     613                        report_it = report_des->link.next;
     614                }       
    609615        }
    610616        else {
Note: See TracChangeset for help on using the changeset viewer.