Commit 30cead3b authored by Gary Ching-Pang Lin's avatar Gary Ching-Pang Lin Committed by Peter Jones

[fallback] Fix the data size for boot option comparison

Signed-off-by: default avatarGary Ching-Pang Lin <glin@suse.com>
parent ec7eddbf
......@@ -231,7 +231,7 @@ find_boot_option(EFI_DEVICE_PATH *dp, CHAR16 *filename, CHAR16 *label,
{
unsigned int size = sizeof(UINT32) + sizeof (UINT16) +
StrLen(label)*2 + 2 + DevicePathSize(dp) +
StrLen(arguments) * 2 + 2;
StrLen(arguments) * 2;
CHAR8 *data = AllocateZeroPool(size);
if (!data)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment