@@ -554,7 +554,8 @@ efi_status_t efi_load_initrd_cmdline(efi_loaded_image_t *image,
*
* Return: status code
*/
-efi_status_t efi_load_initrd(efi_loaded_image_t *image,
+efi_status_t efi_load_initrd(efi_handle_t handle,
+ efi_loaded_image_t *image,
unsigned long soft_limit,
unsigned long hard_limit,
const struct linux_efi_initrd **out)
@@ -177,8 +177,8 @@ efi_status_t efi_stub_common(efi_handle_t handle,
/* Ask the firmware to clear memory on unclean shutdown */
efi_enable_reset_attack_mitigation();
- efi_load_initrd(image, ULONG_MAX, efi_get_max_initrd_addr(image_addr),
- NULL);
+ efi_load_initrd(handle, image, ULONG_MAX,
+ efi_get_max_initrd_addr(image_addr), NULL);
efi_random_get_seed();
@@ -1019,7 +1019,8 @@ static inline efi_status_t efi_load_dtb(efi_loaded_image_t *image,
ULONG_MAX, ULONG_MAX, load_addr, load_size);
}
-efi_status_t efi_load_initrd(efi_loaded_image_t *image,
+efi_status_t efi_load_initrd(efi_handle_t handle,
+ efi_loaded_image_t *image,
unsigned long soft_limit,
unsigned long hard_limit,
const struct linux_efi_initrd **out);
@@ -867,8 +867,8 @@ asmlinkage unsigned long efi_main(efi_handle_t handle,
* arguments will be processed only if image is not NULL, which will be
* the case only if we were loaded via the PE entry point.
*/
- status = efi_load_initrd(image, hdr->initrd_addr_max, ULONG_MAX,
- &initrd);
+ status = efi_load_initrd(handle, image, hdr->initrd_addr_max,
+ ULONG_MAX, &initrd);
if (status != EFI_SUCCESS)
goto fail;
if (initrd && initrd->size > 0) {