mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 16:46:08 +00:00
Kernel: Zero initialize USBDevice::m_device_descriptor
Found by PVS-Studio.
This commit is contained in:
parent
02f684079c
commit
160c9b7631
Notes:
sideshowbarker
2024-07-17 17:13:32 +09:00
Author: https://github.com/bgianfo
Commit: 160c9b7631
Pull-request: https://github.com/SerenityOS/serenity/pull/13042
Reviewed-by: https://github.com/IdanHo
1 changed files with 3 additions and 3 deletions
|
@ -54,7 +54,7 @@ protected:
|
||||||
// Device description
|
// Device description
|
||||||
u16 m_vendor_id { 0 }; // This device's vendor ID assigned by the USB group
|
u16 m_vendor_id { 0 }; // This device's vendor ID assigned by the USB group
|
||||||
u16 m_product_id { 0 }; // This device's product ID assigned by the USB group
|
u16 m_product_id { 0 }; // This device's product ID assigned by the USB group
|
||||||
USBDeviceDescriptor m_device_descriptor; // Device Descriptor obtained from USB Device
|
USBDeviceDescriptor m_device_descriptor {}; // Device Descriptor obtained from USB Device
|
||||||
|
|
||||||
NonnullRefPtr<USBController> m_controller;
|
NonnullRefPtr<USBController> m_controller;
|
||||||
NonnullOwnPtr<Pipe> m_default_pipe; // Default communication pipe (endpoint0) used during enumeration
|
NonnullOwnPtr<Pipe> m_default_pipe; // Default communication pipe (endpoint0) used during enumeration
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue