[libbus] Add check for NULL bus FDO
authorShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Sat, 8 Jan 2011 07:35:50 +0000 (02:35 -0500)
committerShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Sat, 8 Jan 2011 07:35:50 +0000 (02:35 -0500)
src/winvblock/libbus/libbus.c

index d365a1b..ce7fdd7 100644 (file)
@@ -281,6 +281,7 @@ WVL_M_LIB NTSTATUS STDCALL WvlBusAddNode(
     if (
         !Bus ||
         !Node ||
+        !Bus->Fdo ||
         Bus->Fdo->DriverObject != Node->BusPrivate_.Pdo->DriverObject
       )
       return STATUS_INVALID_PARAMETER;