dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

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

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