The Boot CmdLine was used instead of the initrd Device Path.
Issue found by Sivasakthivel N (AMI India)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12404
6f19259b-4bc3-4df7-8a09-
765794883524
BootArguments->LinuxArguments.InitrdSize = InitrdSize;
CopyMem ((VOID*)(BootArguments + 1), (CHAR8*)PcdGetPtr(PcdDefaultBootArgument), CmdLineSize);
- CopyMem ((VOID*)(BootArguments + 1) + CmdLineSize, (CHAR8*)PcdGetPtr(PcdDefaultBootArgument), InitrdSize);
+ CopyMem ((VOID*)((UINTN)(BootArguments + 1) + CmdLineSize), InitrdPath, InitrdSize);
} else {
BootArguments = NULL;
}