diff mbox series

[1/1] efi_loader: rtc_mktime() called twice

Message ID 20200630102008.107735-1-xypron.glpk@gmx.de
State Accepted, archived
Commit 3a92f85f2121bb76061758e2830a5a1572729bcf
Delegated to: Heinrich Schuchardt
Headers show
Series [1/1] efi_loader: rtc_mktime() called twice | expand

Commit Message

Heinrich Schuchardt June 30, 2020, 10:20 a.m. UTC
Don't call rtc_mktime() twice with the same argument in
efi_variable_authenticate().

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 lib/efi_loader/efi_variable.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.27.0
diff mbox series

Patch

diff --git a/lib/efi_loader/efi_variable.c b/lib/efi_loader/efi_variable.c
index 6271dbcf41..cd06125f14 100644
--- a/lib/efi_loader/efi_variable.c
+++ b/lib/efi_loader/efi_variable.c
@@ -571,7 +571,7 @@  static efi_status_t efi_variable_authenticate(u16 *variable,
 	}

 	/* finished checking */
-	*time = rtc_mktime(&tm);
+	*time = new_time;
 	ret = EFI_SUCCESS;

 err: