Blame SOURCES/0216-efi-chainloader-fix-use-after-free.patch

a85e8e
From 2dbafd9ecd2d805385d93e0eca587d473a6bc220 Mon Sep 17 00:00:00 2001
a85e8e
From: Andrei Borzenkov <arvidjaar@gmail.com>
a85e8e
Date: Sat, 20 Jun 2015 23:38:17 +0300
a85e8e
Subject: [PATCH 216/260] efi/chainloader: fix use after free
a85e8e
a85e8e
Found by: Coverity scan.
a85e8e
CID: 96714
a85e8e
---
a85e8e
 grub-core/loader/efi/chainloader.c | 1 +
a85e8e
 1 file changed, 1 insertion(+)
a85e8e
a85e8e
diff --git a/grub-core/loader/efi/chainloader.c b/grub-core/loader/efi/chainloader.c
a85e8e
index 233237018..ec23cf4ed 100644
a85e8e
--- a/grub-core/loader/efi/chainloader.c
a85e8e
+++ b/grub-core/loader/efi/chainloader.c
a85e8e
@@ -351,6 +351,7 @@ grub_cmd_chainloader (grub_command_t cmd __attribute__ ((unused)),
a85e8e
   loaded_image->device_handle = dev_handle;
a85e8e
 
a85e8e
   grub_file_close (file);
a85e8e
+  file = NULL;
a85e8e
 
a85e8e
   if (argc > 1)
a85e8e
     {
a85e8e
-- 
a85e8e
2.13.0
a85e8e