瀏覽代碼

Kernel/USB: Hotplug multiple USB device crash hotfix

b14ckcat 2 年之前
父節點
當前提交
3452cbd1ed
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Kernel/Bus/USB/USBHub.cpp

+ 2 - 0
Kernel/Bus/USB/USBHub.cpp

@@ -45,6 +45,8 @@ ErrorOr<void> Hub::enumerate_and_power_on_hub()
     // USBDevice::enumerate_device must be called before this.
     // USBDevice::enumerate_device must be called before this.
     VERIFY(m_address > 0);
     VERIFY(m_address > 0);
 
 
+    m_sysfs_device_info_node = TRY(SysFSUSBDeviceInformation::create(*this));
+
     if (m_device_descriptor.device_class != USB_CLASS_HUB) {
     if (m_device_descriptor.device_class != USB_CLASS_HUB) {
         dbgln("USB Hub: Trying to enumerate and power on a device that says it isn't a hub.");
         dbgln("USB Hub: Trying to enumerate and power on a device that says it isn't a hub.");
         return EINVAL;
         return EINVAL;