https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c73c86419e46c079ad00e5e5761e8889f5f9fdb2

commit c73c86419e46c079ad00e5e5761e8889f5f9fdb2
Author:     Efe Itietie <[email protected]>
AuthorDate: Mon Oct 25 10:58:46 2021 -0700
Commit:     Stanislav Motylkov <[email protected]>
CommitDate: Tue Oct 26 17:10:51 2021 +0300

    [USBUHCI] Fix wrong sizeof access (#4070)
    
    Reviewed-by: Victor Perevertkin <[email protected]>
    Reviewed-by: Thomas Faber <[email protected]>
---
 drivers/usb/usbuhci/roothub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/usbuhci/roothub.c b/drivers/usb/usbuhci/roothub.c
index 2916ef5cc3e..286e5c3fd3d 100644
--- a/drivers/usb/usbuhci/roothub.c
+++ b/drivers/usb/usbuhci/roothub.c
@@ -241,7 +241,7 @@ UhciRHSetFeaturePortResetWorker(IN PUHCI_EXTENSION 
UhciExtension,
     RegPacket.UsbPortRequestAsyncCallback(UhciExtension,
                                           10, // TimerValue
                                           pPort,
-                                          sizeof(pPort),
+                                          sizeof(*pPort),
                                           UhciRHPortResetComplete);
 }
 

Reply via email to