mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #17136 from bergzand/pr/usbus_hid/fix_null_dereference
usbus_hid: Fix possible null pointer dereference
This commit is contained in:
commit
037260a5b3
@ -174,7 +174,7 @@ static int _control_handler(usbus_t *usbus, usbus_handler_t *handler,
|
||||
hid->report_desc_size);
|
||||
}
|
||||
else if (desc_type == USB_HID_DESCR_HID) {
|
||||
_gen_hid_descriptor(usbus, NULL);
|
||||
_gen_hid_descriptor(usbus, hid);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user