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

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