Changeset 3746bfe in mainline for uspace/drv/usbhid/kbdrepeat.c


Ignore:
Timestamp:
2011-03-18T17:19:29Z (14 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
103cf26, 59e01689, eedac04
Parents:
411d9fa (diff), 00b13408 (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:

Fixed #140 (properly destroying KBD structure when polling ends)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/kbdrepeat.c

    r411d9fa r3746bfe  
    7777
    7878        while (true) {
     79                // check if the kbd structure is usable
     80                if (!usbhid_kbd_is_usable(kbd)) {
     81                        usbhid_kbd_free(&kbd);
     82                        assert(kbd == NULL);
     83                        return;
     84                }
     85               
    7986                fibril_mutex_lock(kbd->repeat_mtx);
    8087
Note: See TracChangeset for help on using the changeset viewer.