mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
Kernel/USB: Hotplug multiple USB device crash hotfix
This commit is contained in:
parent
f6dfd77268
commit
3452cbd1ed
Notes:
sideshowbarker
2024-07-17 06:54:33 +09:00
Author: https://github.com/b14ckcat Commit: https://github.com/SerenityOS/serenity/commit/3452cbd1ed Pull-request: https://github.com/SerenityOS/serenity/pull/15051
@ -45,6 +45,8 @@ ErrorOr<void> Hub::enumerate_and_power_on_hub()
|
||||
// USBDevice::enumerate_device must be called before this.
|
||||
VERIFY(m_address > 0);
|
||||
|
||||
m_sysfs_device_info_node = TRY(SysFSUSBDeviceInformation::create(*this));
|
||||
|
||||
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.");
|
||||
return EINVAL;
|
||||
|
Loading…
Reference in New Issue
Block a user