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

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