Blame SOURCES/0007-add_to_boot_order-actually-always-pass-in-attributes.patch

453bef
From 59e5faa7f29cb4296308720fab36f4f9d1f45ab7 Mon Sep 17 00:00:00 2001
453bef
From: Peter Jones <pjones@redhat.com>
453bef
Date: Tue, 28 Mar 2017 13:24:44 -0400
453bef
Subject: [PATCH 07/11] add_to_boot_order(): actually always pass in attributes
453bef
 for BootOrder.
453bef
453bef
Normally BootOrder is set, and we don't hit the uninitialized path,
453bef
but... yeah.
453bef
453bef
Signed-off-by: Peter Jones <pjones@redhat.com>
453bef
---
453bef
 linux/libfwup.c | 4 +++-
453bef
 1 file changed, 3 insertions(+), 1 deletion(-)
453bef
453bef
diff --git a/linux/libfwup.c b/linux/libfwup.c
453bef
index d82700f..28a4417 100644
453bef
--- a/linux/libfwup.c
453bef
+++ b/linux/libfwup.c
453bef
@@ -774,7 +774,9 @@ add_to_boot_order(uint16_t boot_entry)
453bef
 {
453bef
 	uint16_t *boot_order = NULL, *new_boot_order = NULL;
453bef
 	size_t boot_order_size = 0;
453bef
-	uint32_t attr;
453bef
+	uint32_t attr = EFI_VARIABLE_NON_VOLATILE |
453bef
+			EFI_VARIABLE_BOOTSERVICE_ACCESS |
453bef
+			EFI_VARIABLE_RUNTIME_ACCESS;
453bef
 	int rc;
453bef
 	unsigned int i;
453bef
 
453bef
-- 
453bef
2.12.2
453bef