dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

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

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