https://git.reactos.org/?p=reactos.git;a=commitdiff;h=feae6fbc6453564d82c0a8...
commit feae6fbc6453564d82c0a887f7d9815b65751da6 Author: Efe Itietie omoiti00@gmail.com AuthorDate: Mon Oct 25 10:56:16 2021 -0700 Commit: Stanislav Motylkov x86corez@gmail.com CommitDate: Tue Oct 26 17:10:51 2021 +0300
[USBEHCI] Fix coverity #1476930 "Wrong sizeOf access" (#4070)
Reviewed-by: Victor Perevertkin victor.perevertkin@reactos.org Reviewed-by: Thomas Faber thomas.faber@reactos.org --- drivers/usb/usbehci/roothub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/usbehci/roothub.c b/drivers/usb/usbehci/roothub.c index 67b39bfba90..a693d309ff1 100644 --- a/drivers/usb/usbehci/roothub.c +++ b/drivers/usb/usbehci/roothub.c @@ -154,7 +154,7 @@ EHCI_RH_GetRootHubData(IN PVOID ehciExtension, } else { - /* Ganged power switching (all ports� power at once) */ + /* Ganged power switching (all ports' power at once) */ HubCharacteristics.PowerControlMode = 0; }
@@ -355,7 +355,7 @@ EHCI_RH_PortResetComplete(IN PVOID ehciExtension, RegPacket.UsbPortRequestAsyncCallback(EhciExtension, 50, // TimerValue Port, - sizeof(Port), + sizeof(*Port), EHCI_RH_FinishReset); }