* [PATCH] kexec-tools: ppc64: fix leak while checking for coherent device memory
@ 2017-08-29 17:38 Hari Bathini
2017-08-30 6:39 ` Simon Horman
0 siblings, 1 reply; 2+ messages in thread
From: Hari Bathini @ 2017-08-29 17:38 UTC (permalink / raw)
To: Simon Horman, Kexec-ml; +Cc: Ankit Kumar
Signed-off-by: Hari Bathini <hbathini@linux.vnet.ibm.com>
---
* Follow-up to http://lists.infradead.org/pipermail/kexec/2017-August/019436.html
kexec/arch/ppc64/crashdump-ppc64.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kexec/arch/ppc64/crashdump-ppc64.c b/kexec/arch/ppc64/crashdump-ppc64.c
index 7ea3983..bc9f948 100644
--- a/kexec/arch/ppc64/crashdump-ppc64.c
+++ b/kexec/arch/ppc64/crashdump-ppc64.c
@@ -217,6 +217,7 @@ static int is_coherent_device_mem(const char *fname)
break;
}
if (!strncmp(buf, "ibm,coherent-device-memory", 26)) {
+ fclose(file);
ret = 1;
break;
}
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-08-30 6:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-29 17:38 [PATCH] kexec-tools: ppc64: fix leak while checking for coherent device memory Hari Bathini
2017-08-30 6:39 ` Simon Horman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox