dcavalca / rpms / grub2

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