1
0
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:
Dylan Laduranty 2021-11-04 20:02:10 +01:00 committed by GitHub
commit 037260a5b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}