fix (drivers): applied the fix for PCI to USB too 🤦

This commit is contained in:
antifallobst 2023-06-01 13:52:42 +02:00
parent 78ea65ec75
commit b50750653d
1 changed files with 1 additions and 0 deletions

View File

@ -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); hashmap_T* level_2 = hashmap_lookup(&g_driver_manager.lookup_table_usb, device_id->vendor_id);
if (level_2 == NULL) { if (level_2 == NULL) {
level_2 = memory_allocate(sizeof(hashmap_T)); 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); hashmap_insert(&g_driver_manager.lookup_table_usb, device_id->vendor_id, level_2);
} }