efi/libstub: Fix the efi_load_initrd function description
authorAtish Patra <atish.patra@wdc.com>
Fri, 2 Jul 2021 19:10:44 +0000 (12:10 -0700)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 16 Jul 2021 16:18:15 +0000 (18:18 +0200)
The soft_limit and hard_limit in the function efi_load_initrd describes
the preferred and max address of initrd loading location respectively.
However, the description wrongly describes it as the size of the
allocated memory.

Fix the function description.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/efi-stub-helper.c

index aa8da0a4982941958faef955582c505815a952e5..ae87dded989db2e9ebbc4bb0c0c478f928fa257b 100644 (file)
@@ -630,8 +630,8 @@ efi_status_t efi_load_initrd_cmdline(efi_loaded_image_t *image,
  * @image:     EFI loaded image protocol
  * @load_addr: pointer to loaded initrd
  * @load_size: size of loaded initrd
- * @soft_limit:        preferred size of allocated memory for loading the initrd
- * @hard_limit:        minimum size of allocated memory
+ * @soft_limit:        preferred address for loading the initrd
+ * @hard_limit:        upper limit address for loading the initrd
  *
  * Return:     status code
  */