goto ErrorExit;\r
}\r
\r
+ //\r
+ // Initialize the list of registered RAM disks maintained by the driver\r
+ // before installing the protocol\r
+ //\r
+ InitializeListHead (&RegisteredRamDisks);\r
+\r
//\r
// Install the EFI_RAM_DISK_PROTOCOL and RAM disk private data onto a\r
// new handle\r
goto ErrorExit;\r
}\r
\r
- //\r
- // Initialize the list of registered RAM disks maintained by the driver\r
- //\r
- InitializeListHead (&RegisteredRamDisks);\r
-\r
Status = EfiCreateEventReadyToBootEx (\r
TPL_CALLBACK,\r
RamDiskAcpiCheck,\r