efibootmgr-fix-usage-of-efi_loadopt_path-again.patch 826 B

1234567891011121314151617181920212223242526
  1. From f5e09ec26bd03490903330f121b18b8aaa56cf85 Mon Sep 17 00:00:00 2001
  2. From: Peter Jones <pjones@redhat.com>
  3. Date: Tue, 24 May 2016 11:33:20 -0400
  4. Subject: [PATCH] efibootmgr: fix usage of efi_loadopt_path() /again/.
  5. Signed-off-by: Peter Jones <pjones@redhat.com>
  6. ---
  7. src/efibootmgr.c | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. diff --git a/src/efibootmgr.c b/src/efibootmgr.c
  10. index baefa68..199eb28 100644
  11. --- a/src/efibootmgr/efibootmgr.c
  12. +++ b/src/efibootmgr/efibootmgr.c
  13. @@ -848,7 +848,7 @@ show_boot_vars()
  14. pathlen = efi_loadopt_pathlen(load_option,
  15. boot->data_size);
  16. - dp = efi_loadopt_path(load_option, pathlen);
  17. + dp = efi_loadopt_path(load_option, boot->data_size);
  18. rc = efidp_format_device_path(text_path, text_path_len,
  19. dp, pathlen);
  20. if (rc < 0)
  21. --
  22. 1.9.1