Author: fireball
Date: Tue Nov 25 09:57:03 2008
New Revision: 37636
URL: http://svn.reactos.org/svn/reactos?rev=37636&view=rev
Log:
Daniel Zimmerman
- First check for NULL before reference a member in it.
See issue #3907 for more details.
Modified:
trunk/reactos/drivers/usb/nt4compat/usbdriver/ohci.c
Modified: trunk/reactos/drivers/usb/nt4compat/usbdriver/ohci.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/nt4compat/usbd…
==============================================================================
--- trunk/reactos/drivers/usb/nt4compat/usbdriver/ohci.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/nt4compat/usbdriver/ohci.c [iso-8859-1] Tue Nov 25 09:57:03 2008
@@ -1428,9 +1428,10 @@
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;