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

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