diff --git a/reactos/drivers/usb/nt4compat/usbdriver/ohci.c b/reactos/drivers/usb/nt4compat/usbdriver/ohci.c index e68592e2845..0d02b9ecbce 100644 --- a/reactos/drivers/usb/nt4compat/usbdriver/ohci.c +++ b/reactos/drivers/usb/nt4compat/usbdriver/ohci.c @@ -1428,10 +1428,11 @@ ohci_generic_urb_completion(PURB purb, PVOID context) if (old_irql < DISPATCH_LEVEL) KeRaiseIrql(DISPATCH_LEVEL, &old_irql); - pdev = purb->pdev; if (purb == NULL) goto LBL_LOWER_IRQL; + pdev = purb->pdev; + if (pdev == NULL) goto LBL_LOWER_IRQL;