Changeset e5024111 in mainline for uspace/drv/bus/usb/usbhid/usbhid.c


Ignore:
Timestamp:
2011-10-14T13:07:04Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cddd151
Parents:
cc29622
Message:

usbhid: Initialize report sooner than on first use.

Fixes crash witht unsupported devices.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbhid/usbhid.c

    rcc29622 re5024111  
    454454        }
    455455
     456        usb_hid_report_init(hid_dev->report);
     457
    456458        /* The USB device should already be initialized, save it in structure */
    457459        hid_dev->usb_dev = dev;
Note: See TracChangeset for help on using the changeset viewer.