dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

Blame SOURCES/0226-linuxefi-fix-double-free-on-verification-failure.patch

f725e3
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
f725e3
From: Peter Jones <pjones@redhat.com>
f725e3
Date: Tue, 14 Jun 2016 09:50:25 -0400
f725e3
Subject: [PATCH] linuxefi: fix double free on verification failure.
f725e3
f725e3
Signed-off-by: Peter Jones <pjones@redhat.com>
f725e3
---
f725e3
 grub-core/loader/i386/efi/linux.c | 1 -
f725e3
 1 file changed, 1 deletion(-)
f725e3
f725e3
diff --git a/grub-core/loader/i386/efi/linux.c b/grub-core/loader/i386/efi/linux.c
f725e3
index 82f75b7f3ab..010bf982d80 100644
f725e3
--- a/grub-core/loader/i386/efi/linux.c
f725e3
+++ b/grub-core/loader/i386/efi/linux.c
f725e3
@@ -191,7 +191,6 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)),
f725e3
     {
f725e3
       grub_error (GRUB_ERR_INVALID_COMMAND, N_("%s has invalid signature"),
f725e3
 		  argv[0]);
f725e3
-      grub_free (kernel);
f725e3
       goto fail;
f725e3
     }
f725e3