nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

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

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