fix (drivers): applied the fix for PCI to USB too 🤦
This commit is contained in:
parent
78ea65ec75
commit
b50750653d
|
@ -79,6 +79,7 @@ void driver_init_usb(driver_T* driver, driver_config_usb_T* conf) {
|
|||
hashmap_T* level_2 = hashmap_lookup(&g_driver_manager.lookup_table_usb, device_id->vendor_id);
|
||||
if (level_2 == NULL) {
|
||||
level_2 = memory_allocate(sizeof(hashmap_T));
|
||||
*level_2 = hashmap_create(DRIVER_MANAGER_HASHMAP_SIZE);
|
||||
hashmap_insert(&g_driver_manager.lookup_table_usb, device_id->vendor_id, level_2);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue