diff --git a/src/drivers/driver.c b/src/drivers/driver.c index c49e258..9bd124c 100644 --- a/src/drivers/driver.c +++ b/src/drivers/driver.c @@ -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); }