boot: fix assignment of ret_* variables in initrd_prepare()

This commit is contained in:
Antonio Alvarez Feijoo
2024-04-18 14:13:38 +02:00
committed by Luca Boccassi
parent 82efe05c01
commit e2fe5c4b98
+3 -3
View File
@@ -2255,9 +2255,9 @@ static EFI_STATUS initrd_prepare(
assert(ret_initrd_size);
if (entry->type != LOADER_LINUX || !entry->initrd) {
ret_options = NULL;
ret_initrd = NULL;
ret_initrd_size = 0;
*ret_options = NULL;
*ret_initrd = NULL;
*ret_initrd_size = 0;
return EFI_SUCCESS;
}