summaryrefslogtreecommitdiff
path: root/Kernel/Bus
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2022-03-13 21:13:01 -0700
committerBrian Gianforcaro <b.gianfo@gmail.com>2022-03-18 00:51:16 -0700
commit160c9b7631445d657f10b71fcd81503c21e453be (patch)
treede019aa6ac669eeefd7aa7f3521d8a9e3cf8296d /Kernel/Bus
parent02f684079cd8305bd016e38221e0551ca82a11aa (diff)
downloadserenity-160c9b7631445d657f10b71fcd81503c21e453be.zip
Kernel: Zero initialize USBDevice::m_device_descriptor
Found by PVS-Studio.
Diffstat (limited to 'Kernel/Bus')
-rw-r--r--Kernel/Bus/USB/USBDevice.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Bus/USB/USBDevice.h b/Kernel/Bus/USB/USBDevice.h
index f76d34997f..37336461a8 100644
--- a/Kernel/Bus/USB/USBDevice.h
+++ b/Kernel/Bus/USB/USBDevice.h
@@ -52,9 +52,9 @@ protected:
u8 m_address { 0 }; // USB address assigned to this device
// Device description
- 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
- USBDeviceDescriptor m_device_descriptor; // Device Descriptor obtained from USB Device
+ 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
+ USBDeviceDescriptor m_device_descriptor {}; // Device Descriptor obtained from USB Device
NonnullRefPtr<USBController> m_controller;
NonnullOwnPtr<Pipe> m_default_pipe; // Default communication pipe (endpoint0) used during enumeration