Changeset e259d95 in mainline


Ignore:
Timestamp:
2011-03-02T00:02:26Z (13 years ago)
Author:
Matej Klonfar <maklf@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0588062e, c7a2e7e
Parents:
da3965e
Message:

free report descriptor bug fix
forgotten header added

Location:
uspace/lib/usb
Files:
1 added
1 edited

Legend:

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

    rda3965e re259d95  
    525525{
    526526        return;
    527         /*
     527       
    528528        usb_hid_report_item_t *report_item;
    529         link_t *item;
     529        link_t *next;
    530530       
    531531        if(head == NULL || list_empty(head)) {         
    532532            return;
    533533        }
     534       
     535        next = head->next;
     536        while(next != head) {
     537       
     538            report_item = list_get_instance(next, usb_hid_report_item_t, link);
     539            next = next->next;
    534540           
    535         for(item = head->next; item != head; item = item->next) {
    536                 list_remove(item);
    537                 free(list_get_instance(item,usb_hid_report_item_t, link));
    538         }
    539 
     541            free(report_item);
     542        }
     543       
    540544        return;
    541         */
     545       
    542546}
    543547
Note: See TracChangeset for help on using the changeset viewer.