From af008eee80bda6de4ceba3325b568da3587714e0 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Tue, 25 Nov 2008 15:57:03 +0000 Subject: [PATCH] Daniel Zimmerman - First check for NULL before reference a member in it. See issue #3907 for more details. svn path=/trunk/; revision=37636 --- reactos/drivers/usb/nt4compat/usbdriver/ohci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;