Blame SOURCES/kexec-tools-2.0.15-ppc64-fix-leak-while-checking-for-cohere.patch

06c2a2
From 69431282f075ab723c4886f20aa248976920aaae Mon Sep 17 00:00:00 2001
06c2a2
From: Hari Bathini <hbathini@linux.vnet.ibm.com>
06c2a2
Date: Tue, 29 Aug 2017 23:08:02 +0530
06c2a2
Subject: [PATCH] kexec-tools: ppc64: fix leak while checking for coherent
06c2a2
 device memory
06c2a2
06c2a2
Signed-off-by: Hari Bathini <hbathini@linux.vnet.ibm.com>
06c2a2
Signed-off-by: Simon Horman <horms@verge.net.au>
06c2a2
Signed-off-by: Pingfan Liu <piliu@redhat.com>
06c2a2
---
06c2a2
 kexec/arch/ppc64/crashdump-ppc64.c | 1 +
06c2a2
 1 file changed, 1 insertion(+)
06c2a2
06c2a2
diff --git a/kexec/arch/ppc64/crashdump-ppc64.c b/kexec/arch/ppc64/crashdump-ppc64.c
06c2a2
index 7ea3983..bc9f948 100644
06c2a2
--- a/kexec/arch/ppc64/crashdump-ppc64.c
06c2a2
+++ b/kexec/arch/ppc64/crashdump-ppc64.c
06c2a2
@@ -217,6 +217,7 @@ static int is_coherent_device_mem(const char *fname)
06c2a2
 			break;
06c2a2
 		}
06c2a2
 		if (!strncmp(buf, "ibm,coherent-device-memory", 26)) {
06c2a2
+			fclose(file);
06c2a2
 			ret = 1;
06c2a2
 			break;
06c2a2
 		}
06c2a2
-- 
06c2a2
2.7.4
06c2a2