nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0343-verifiers-IA-64-fallout-cleanup.patch

3efed6
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
3efed6
From: Daniel Kiper <daniel.kiper@oracle.com>
3efed6
Date: Thu, 14 Mar 2019 16:18:31 +0100
3efed6
Subject: [PATCH] verifiers: IA-64 fallout cleanup
3efed6
3efed6
IA-64 fallout cleanup after commit 4d4a8c96e (verifiers: Add possibility
3efed6
to verify kernel and modules command lines).
3efed6
3efed6
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
3efed6
Reviewed-by: Ross Philipson <ross.philipson@oracle.com>
3efed6
---
3efed6
 grub-core/loader/ia64/efi/linux.c | 3 +--
3efed6
 1 file changed, 1 insertion(+), 2 deletions(-)
3efed6
3efed6
diff --git a/grub-core/loader/ia64/efi/linux.c b/grub-core/loader/ia64/efi/linux.c
3efed6
index 2ad0b0c0407..cfeb2c145bb 100644
3efed6
--- a/grub-core/loader/ia64/efi/linux.c
3efed6
+++ b/grub-core/loader/ia64/efi/linux.c
3efed6
@@ -547,8 +547,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)),
3efed6
 
3efed6
   *p = '\0';
3efed6
 
3efed6
-  err = grub_verify_string (cmdline, GRUB_VERIFY_KERNEL_CMDLINE);
3efed6
-  if (err)
3efed6
+  if (grub_verify_string (cmdline, GRUB_VERIFY_KERNEL_CMDLINE))
3efed6
     goto fail;
3efed6
   
3efed6
   boot_param->command_line = (grub_uint64_t) cmdline;