From 160c9b7631445d657f10b71fcd81503c21e453be Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Sun, 13 Mar 2022 21:13:01 -0700 Subject: [PATCH] Kernel: Zero initialize USBDevice::m_device_descriptor Found by PVS-Studio. --- Kernel/Bus/USB/USBDevice.h | 6 +++--- 1 file 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 m_controller; NonnullOwnPtr m_default_pipe; // Default communication pipe (endpoint0) used during enumeration