From 9426d2986de5174b73bf470372bfc84fcd6bdb95 Mon Sep 17 00:00:00 2001 From: Vadim Galyant Date: Mon, 25 Dec 2017 15:19:43 +0900 Subject: [PATCH] [USBPORT] Fixing calculation pointer for FdoExtension->Usb2Extension. --- drivers/usb/usbport/usbport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/usbport/usbport.c b/drivers/usb/usbport/usbport.c index 1dbe779daa5..3be8e951ef3 100644 --- a/drivers/usb/usbport/usbport.c +++ b/drivers/usb/usbport/usbport.c @@ -1907,8 +1907,8 @@ USBPORT_AddDevice(IN PDRIVER_OBJECT DriverObject, if (MiniPortInterface->Packet.MiniPortFlags & USB_MINIPORT_FLAGS_USB2) { FdoExtension->Usb2Extension = - (PUSB2_HC_EXTENSION)FdoExtension->MiniPortExt + - MiniPortInterface->Packet.MiniPortExtensionSize; + (PUSB2_HC_EXTENSION)((ULONG_PTR)FdoExtension->MiniPortExt + + MiniPortInterface->Packet.MiniPortExtensionSize); DPRINT("USBPORT_AddDevice: Usb2Extension - %p\n", FdoExtension->Usb2Extension);